Notice: On April 23, 2014, Statalist moved from an email list to a forum, based at statalist.org.
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
st: output with attnd command
From
Yvonne Cao <[email protected]>
To
"[email protected]" <[email protected]>
Subject
st: output with attnd command
Date
Fri, 21 Mar 2014 19:28:44 +0000
I am working with some propensity score matching indicators in Stata, with the command attnd. My code looks like this:
unab outcomes: y12no_ch-sc_ethhelp_ch
unab vars3: age1823_1 age2430_1 ed_prim_1 female_1 pc1_1 lny12inc_nob_1 princ_ag_1 princ_live_1 princ_wage_1 princ_bus_1 pcon_anygov_1 pview_voi_1
foreach k of varlist `outcomes' {
attnd `k' treat_1 `vars3' , comsup
}
For each of the `outcomes' , this generates one treatment effect coefficient, one standard error, and one t-statistic in r(attnd), r(seattnd) and r(tsattnd) respectively. What I would like to be able to do is to output the coefficient, se, and t-stat for each of the `outcomes' into a single file.
Would anybody know how to do this?
Thank you,
Yvonne Cao | Principal Research Analyst, International Projects
NORC at the University of Chicago
225 Friend Street, Suite 204, Boston, MA 02114
[email protected] | skype: yvc158
office +1 (617) 316-3706 | fax +1 (301) 634-9586
*
* For searches and help try:
* http://www.stata.com/help.cgi?search
* http://www.stata.com/support/faqs/resources/statalist-faq/
* http://www.ats.ucla.edu/stat/stata/