version: 1.0.0
help astx 2 APR 2017

Title

astx - Creates a table of descriptive statistics by a grouping variable.

Syntax

astx
varlist, stat(options)
by(varlist)

Description

astx finds descriptive statistics for a specific variable over a grouping variable. Further, it estimates t-statistics and sends the output file to MS Excel File.

Statistics Options

astx has the following options for reporting statistics.

1. sd : for standard deviation

2. mean : for mean

3. semean : for standard error of mean

4. median : for median

5. count : for counting non-missing values

6. sum : for running sum

7. range	: for range

8. min : for minimum

9. var : for maximum

10. cv : for coefficient of variation

11. skewness: for skewness

12. kurtosis: for kurtosis

13. iqr : for interquartile range

14. p1 : for 1st percentile

15. p5 : for 5th percentile

16. p10 : for 10th percentile

17. p25 : for 25th percentile

18. p50 : for 50th percentile

19. p75 : for 75th percentile

20. p99 : for 99th percentile

21. tstat : for t-statistics

Example 1

. sysuse auto, clear

. astx price, stat(sd mean median max min) by( foreign)

Example 2: Report t-statistics

. astx price, stat(sd mean tstat) by( foreign)

Author

*:::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: *
* *
* Dr. Attaullah Shah *
* Institute of Management Sciences, Peshawar, Pakistan *
* Email: attaullah.shah@imsciences.edu.pk *
* www.OpenDoors.Pk *
*:::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::*

Also see

astile,
asreg,
asrol,
searchfor