"Stata is a complete, integrated statistical software package that provides everything you need for data analysis, data management, and graphics."
减少手工编辑文件
<<dd_do>>
sysuse auto
regress weight displacement
<</dd_do>>
. sysuse auto
(1978 Automobile Data)
. regress weight displacement
Source | SS df MS Number of obs = 74
-------------+---------------------------------- F(1, 72) = 289.52
Model | 35312313.3 1 35312313.3 Prob > F = 0.0000
Residual | 8781865.08 72 121970.348 R-squared = 0.8008
-------------+---------------------------------- Adj R-squared = 0.7981
Total | 44094178.4 73 604029.841 Root MSE = 349.24
------------------------------------------------------------------------------
weight | Coef. Std. Err. t P>|t| [95% Conf. Interval]
-------------+----------------------------------------------------------------
displacement | 7.573261 .4450891 17.02 0.000 6.685992 8.46053
_cons | 1525.276 96.74555 15.77 0.000 1332.417 1718.134
------------------------------------------------------------------------------
Attributes改变tag的行为
<<dd_do:quietly>>
matrix define eb = e(b)
<</dd_do>>
<<dd_do:quietly>>
scatter weight displacement, mcolor(red%30)
<</dd_do>>
<<dd_graph>>
dynamic tag可用于任意文本文件,例如LaTeX
从包含dynamic tags的LaTeX文件生成.pdf file
Collect results from tab to save in docx file