I am trying to make a table of p values and chi-squared test statistics(or r(cusum)s) after estat sbsingle and estat sbcusum. Can anyone help?
-
Login or Register
- Log in with
local to_combine forvalues i = 1/21 { local ivars x`i' z`i' t`i' s`i' // PERHAPS OTHER COMMANDS HERE reg y`i' `ivars' estat sbsingle estat sbcusum graph save sb`i' local to_combine `to_combine' sb`i' } graph combine `to_combine'
forvalues i=1/3 { local ivars ltexits`i' lcredits`i' rrates`i' llabors`i' qui reg ltentrys`i' `ivars' qui estat sbsingle scalar sbsingle_p = r(p) scalar sbsingle_chi2 = r(chi2) scalar sbsingle_df = r(df) qui estat sbcusum graph save sb`i' estimates store s`i' esttab s`i' using example`i', scalars(Zt p) /// stats(sbsingle_p sbsingle_chi2 sbsingle_df) local to combine `to_combine' sb`i' } graph combine `to_combine'
Comment