Dear Prof,
I have run into a problem using the asdoc command below. Stata report the p-values/chi-square but asdoc fails to report the p-values and chi-square. Please any work around?
foreach var of varlist wpreccare-lknowledg {
tab `var' studyarm,col chi
}
foreach var of varlist wpreccare-lknowledg {
asdoc tab `var' studyarm,col chi
asdoc, text(Chi2 =
r(chi2)' Pr =
r(p)' )
}