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.