Attaullah Shah please find the data here.
-
Login or Register
- Log in with
ssc install asdoc, replace
use "C:\temp\simdat.dta" asdoc reg energy_kcal_day accesstsjm
save(filename)
*Load example dataset sysuse auto, clear * Create a folder in C drive if not already created cap mkdir C:/results * Now write files directly to this folder asdoc sum, save(C:/results/filename.doc) replace
*Save the directory path to a global global folder1 C:/results * Use this global in the save option asdoc sum, save($folder1/filename.doc)
global folder1 C:/results/filename.doc asdoc sum, save($folder1)
ssc install asdoc, replace
sysuse auto, clear bys foreign : asdoc tabstat price mpg rep78 headroom trunk , replace stat(N mean min max tstat)
asdoc tabulate rep78 foreign, cell replace
The result with stata is:
Repair |
Record | Car type
1978 | Domestic Foreign | Total
-----------+----------------------+----------
1 | 2 0 | 2
| 2.90 0.00 | 2.90
-----------+----------------------+----------
2 | 8 0 | 8
| 11.59 0.00 | 11.59
-----------+----------------------+----------
3 | 27 3 | 30
| 39.13 4.35 | 43.48
-----------+----------------------+----------
4 | 9 9 | 18
| 13.04 13.04 | 26.09
-----------+----------------------+----------
5 | 2 9 | 11
| 2.90 13.04 | 15.94
-----------+----------------------+----------
Total | 48 21 | 69
| 69.57 30.43 | 100.00
sysuse auto, clear asdoc sum foreign , save(example) tzok dec(2) stat(N sd mean)
net install asdoc, from(https://fintechprofessor.com) replace
Comment