|
|
|
||||
|
|
|||||
1987 1987 1991 1992 1992 1992 1992 1993 1994 1994 1995
input x
1987
1987
1991
1992
1992
1992
1992
1993
1994
1994
1995
end
summ x, detail
x
-------------------------------------------------------------
Percentiles Smallest
1% 1987 1987
5% 1987 1987
10% 1987 1991 Obs 11
25% 1991 1992 Sum of Wgt. 11
50% 1992 Mean 1991.727
Largest Std. Dev. 2.611165
75% 1994 1993
90% 1994 1994 Variance 6.818182
95% 1995 1994 Skewness -.8895014
99% 1995 1995 Kurtosis 2.767989
Stata uses the method shown by Bock, namelyWe can convert the value from Stata to the value from SAS that uses the vardef=n value like this 2.767989 - 3 = -.232011. The value of .446 is not so easy to convert, but suffice it to say that it is computed using n-1 instead of n.data test; input x; cards; 1987 1987 1991 1992 1992 1992 1992 1993 1994 1994 1995 ; run; proc means data=test kurtosis vardef=n; run;Analysis Variable : x Kurtosis -------------- -0.2320107 --------------proc means data=test kurtosis ; run;Analysis Variable : x Kurtosis -------------- 0.4466489 --------------
data list list / yr. begin data. 1987 1987 1991 1992 1992 1992 1992 1993 1994 1994 1995 end data. desc /var=all /stat=kurtosis.
UCLA Researchers are invited to our Statistical Consulting Services
We recommend others to our list of Other Resources for Statistical Computing Help
These pages are Copyrighted (c) by UCLA Academic Technology Services