在输出窗口中很容易获得峰度,如下所示:
means YourVar by year/cells mean kurt.
但是如果你想处理数据集中的结果,你需要从输出中捕获它(aggregate
命令中没有峰度计算):
DATASET DECLARE AggData.
OMS /SELECT TABLES /IF COMMANDS=['Means'] SUBTYPES=['Report']
/DESTINATION FORMAT=SAV NUMBERED=TableNumber_ OUTFILE='AggData' VIEWER=YES.
means YourVar by year/cells mean kurt.
omsend.
dataset activate AggData.
* at this point you have a new dataset with the means and the kurtosis.
Just a bit of cleaning up.
delete vars TableNumber_ Command_ Subtype_ Label_.
rename vars var1=year var2=varname.
这适用于一个变量,您也可以添加其他统计信息。请注意,虽然您也可以添加更多变量,但数据集将需要一些重组(使用casestovars
)。