## asdoc: Exporting customized descriptive statistics from Stata to MS Word / RTF

Category:asdoc,BlogOsama Mahmood has asked :

**If I want to report 25th and 75th percentiles for variables through asdoc, then how would I do that? And what if I do not want to report the Min and Max?**

Answer: In this YouTube video, I have shown various methods in which descriptive statistics can be reported using asdoc. What Osama has asked for is possible with the customized descriptive statistics using the **stat()** option of asdoc. Using option stat(), we can choose from the following statistics. Each of the bold words in the following list represents the control word that can be used to report the required statistic.

NNumber of observationsmeanArithmetic meansdStandard deviationsemean Stanard error of the meansumSum / totalrangeRangeminThe smallest valuemaxThe largest valuecountCounts the number of non-missing observationsvarVariancecvCoefficient of variationskewnessSkewnesskurtosisKurtosisiqrInterquartile rangep11st percentilep55th percentilep1010th percentilep2525th percentilep50Median or the 50 percentilep7575th percentilep9999th percentiletstatt-statistics that the given variable == 0

### Example 1: Mean, sd, 25th percentile, median, and 75th percentiles

sysuse auto

asdoc sum, stat(mean sd p25 p50 p75) replace

### Example 2: Mean, sd, 25th percentile, median, and 75th percentiles, range, t-statistics

asdoc sum, stat(mean sd p25 p50 p75 range tstat) replace