hi, I am working on this:
asdoc ttest nonper_ratio if tipoinst!="EAC", by(gender) label stat(mean sd dif) save(sumtable.doc)
asdoc ttest nonper_ratio if tipoinst=="EAC", by(gender) rowappend label stat(mean sd dif)
and it delivers the following error message:
Two-sample t test with equal variances
------------------------------------------------------------------------------
Group | Obs Mean Std. err. Std. dev. [95% conf. interval]
---------+--------------------------------------------------------------------
Male | 71853339 .0383888 .0000224 .1901024 .0383448 .0384327
Female | 75897704 .0323707 .0000201 .1751935 .0323313 .0324101
---------+--------------------------------------------------------------------
Combined | 1.5e+08 .0352974 .000015 .1826208 .0352679 .0353268
---------+--------------------------------------------------------------------
diff | .006018 .0000301 .0059591 .0060769
------------------------------------------------------------------------------
diff = mean(Male) - mean(Female) t = 200.2332
H0: diff = 0 Degrees of freedom = 1.5e+08
Ha: diff < 0 Ha: diff != 0 Ha: diff > 0
Pr(T < t) = 1.0000 Pr(|T| > |t|) = 0.0000 Pr(T > t) = 0.0000
Two-sample t test with equal variances
------------------------------------------------------------------------------
| Mean1 Mean2 dif dif dif
-----------------------+------------------------------------------------------
nonper_ratio by gender |
0 1 | .0385 .0325 .006 . .
------------------------------------------------------------------------------
| Mean1 Mean2 dif dif dif
-------------+------------------------------------------------------
nonper_rat~r |
0 1 | .0385 .0325 .006 . .
asdoctable(): 3301 subscript invalid
<istmt>: - function returned error
r(3301);
I am working witht he updated version of asdoc.
asdoc ttest nonper_ratio if tipoinst!="EAC", by(gender) label stat(mean sd dif) save(sumtable.doc)
asdoc ttest nonper_ratio if tipoinst=="EAC", by(gender) rowappend label stat(mean sd dif)
and it delivers the following error message:
Two-sample t test with equal variances
------------------------------------------------------------------------------
Group | Obs Mean Std. err. Std. dev. [95% conf. interval]
---------+--------------------------------------------------------------------
Male | 71853339 .0383888 .0000224 .1901024 .0383448 .0384327
Female | 75897704 .0323707 .0000201 .1751935 .0323313 .0324101
---------+--------------------------------------------------------------------
Combined | 1.5e+08 .0352974 .000015 .1826208 .0352679 .0353268
---------+--------------------------------------------------------------------
diff | .006018 .0000301 .0059591 .0060769
------------------------------------------------------------------------------
diff = mean(Male) - mean(Female) t = 200.2332
H0: diff = 0 Degrees of freedom = 1.5e+08
Ha: diff < 0 Ha: diff != 0 Ha: diff > 0
Pr(T < t) = 1.0000 Pr(|T| > |t|) = 0.0000 Pr(T > t) = 0.0000
Two-sample t test with equal variances
------------------------------------------------------------------------------
| Mean1 Mean2 dif dif dif
-----------------------+------------------------------------------------------
nonper_ratio by gender |
0 1 | .0385 .0325 .006 . .
------------------------------------------------------------------------------
| Mean1 Mean2 dif dif dif
-------------+------------------------------------------------------
nonper_rat~r |
0 1 | .0385 .0325 .006 . .
asdoctable(): 3301 subscript invalid
<istmt>: - function returned error
r(3301);
I am working witht he updated version of asdoc.
Comment