Currently, asdoc does not support nested tables with margins, but I am working on it, the asdocx version will support it.
-
Login or Register
- Log in with
sysuse auto, clear asdoc sum, dec(4) replace
func_nested_reg(): 3200 conformability error <istmt>: - function returned error
asdoc reg self_cit $controls, r cluster(permno_adj) replace /// add(clustering error at firm level, YES) title(Table 3) nest asdoc reg self_cit $controls if industry ==0, r cluster(permno_adj) /// add(clustering error at firm level, YES, CMM industry, YES) nest
asdoc reg self_cit $controls, r cluster(permno_adj) replace /// add(clustering error at firm level, YES) title(Table 3) nest asdoc reg self_cit $controls if industry ==0, r cluster(permno_adj) /// add(clustering error at firm level, YES, CMM industry, YES) nest asdoc reg self_cit c.density##c.kd_cov_5 $controls if industry ==1, r cluster(permno_adj) /// add(clustering error at firm level, YES, Drug industry, YES) nest
sysuse auto, clear asdoc reg price mpg rep78 headroom, nest replace asdoc reg price mpg rep78 gear_ratio , nest * Start a new table asdoc reg price mpg rep78 headroom, nest reset asdoc reg price mpg rep78 gear_ratio , nest
asdoc table x1 x2 year if x3==1 & inlist(year,2008,2011), c(n x4 n x5 m x6) sc col row replace
. asdoc table x1 x2 year if x3==1 & inlist(year,2008,2011), c(n x4 n x5 m x6) sc col row replace ------------------------------------------------------------------------ | year and x2 | ----------- 2008 ----------- ----------- 2011 ----------- x1 | 1 2 Total 1 2 Total ----------+------------------------------------------------------------- 1 | 25 25 50 7 18 25 | 26 26 52 8 22 30 | .9615384 .9615384 .9615384 .875 .8181818 .8333333 | 2 | . . . 1 7 8 | . . . 1 8 9 | . . . 1 .875 .8888889 | 3 | 21 20 41 12 20 32 | 22 21 43 12 23 35 | .9545454 .952381 .9534883 1 .8695652 .9142857 | Total | 46 45 91 20 45 65 | 48 47 95 21 53 74 | .9583333 .9574468 .9578947 .952381 .8490566 .8783784 ------------------------------------------------------------------------ astable(): 3301 subscript invalid <istmt>: - function returned error r(3301);
webuse byssin1, clear asdoc table workplace smokes race [fw=pop], by(sex) c(mean prob) format(%9.3f) replace
webuse byssin1, clear asdoc table workplace smokes race, by(sex) c(mean prob n pop) format(%9.3f) replace
. asdoc table x1 x2 year if x3==1 & inlist(year,2008,2011), c(n x4) sc col row replace ------------------------------------------------------ | year and x2 | ------- 2008 ------ ------- 2011 ------ x1 | 1 2 Total 1 2 Total ----------+------------------------------------------- 1 | 25 25 50 7 18 25 2 | . . . 1 7 8 3 | 21 20 41 12 20 32 | Total | 46 45 91 20 45 65 ------------------------------------------------------ Click to Open File: Myfile.doc
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||
*! Version 2.3.8.9 : Changes made on October 12, 2020
* To check the version of asdoc which asdoc * Install new version from my site net install asdoc, from(http://fintechprofessor.com) replace webuse byssin1, clear asdoc table workplace smokes race, by(sex) c(mean prob n pop) tzok replace
Comment