asdocx: Export from Stata to Word, Excel, LaTeX & HTML › Forums › asdocx Forum › asdocx seems not to work after estimates use › Reply To: asdocx seems not to work after estimates use
I have added support for stored estimates now. Instead of using regress, use replay to replay the stored estimates. Please update and try the following example
asdocx_update
Example of detailed regression
sysuse auto.dta, clear regress price mpg headroom trunk displacement estimates save results, replace clear estimates use results asdocx replay, replace save(detailed.html)
Linear regression
| Variables | Coef. | Std. Err. | t-value | p-value | [95% Co | Interval] | Sig |
|---|---|---|---|---|---|---|---|
| mpg | -124.512 | 75.153 | -1.66 | 0.102 | -274.438 | 25.414 | |
| headroom | -789.532 | 471.188 | -1.68 | 0.098 | -1729.525 | 150.462 | * |
| trunk | 66.222 | 106.529 | 0.62 | 0.536 | -146.298 | 278.742 | |
| displacement | 11.935 | 4.884 | 2.44 | 0.017 | 2.191 | 21.678 | ** |
| Constant | 7914.615 | 2701.779 | 2.93 | 0.005 | 2524.713 | 13304.518 | *** |
| Mean dependent var | SD dependent var | . | |||||
| R-squared | Number of obs | 74.000 | |||||
| F-test | Prob > F | 0.000 | |||||
| Akaike crit. (AIC) | Bayesian crit. (BIC) | 1386.274 | |||||
| Notes: *** p<.01, ** p<.05, * p<.1 | |||||||
Example of nested regression
sysuse auto.dta, clear regress price mpg headroom trunk displacement estimates save results, replace clear estimates use results asdocx replay, replace save(Nested.html) nest
Table: Regression results
| (1) | |
|---|---|
| Variables | price |
| mpg | -124.512 |
| (75.153) | |
| headroom | -789.532* |
| (471.188) | |
| trunk | 66.222 |
| (106.529) | |
| displacement | 11.935** |
| (4.884) | |
| Intercept | 7914.615*** |
| (2701.779) | |
| Observations | 74 |
| R2 | 0.303 |
| Notes: Standard errors are in parentheses. *** p<.01, ** p<.05, * p<.1 | |