Quantcast
Channel: Statalist
Viewing all articles
Browse latest Browse all 73244

Saving tabstat as a matrix and calculate j-b value

$
0
0
Dear statalist:

I am learning to obtain descriptive statistics of variables, but i don't know how to use matrix calculation to get j-b value.


How can I get the j-b value of the three variables" price mpg rep78" through matrix calculation?


Code:
clear all

sysuse auto


tabstat price mpg rep78,stats(mean sd n v  median min max skewness Kurtosis)
The j-b value = N * [ S^2/ 6 + (K-3)^2/24]

N = number of observations
S = skewness
K = Kurtosis

Or there is a better way to get j-b value, please help me.

Thanks in advance.

Viewing all articles
Browse latest Browse all 73244

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>