Hello there,
Got a question. I am working on a panel data and I am trying to find the mean of some variables, by village groups. The data ranges from year 2008 to 2018 for each village group. I have tried to use -collapse- but I have not been successful. I have read the reason for this in one of the statalist posts on the same problem. Unfortunately, I am unable to figure out any other way of achieving my goal. Currently, the command is as follows:
xtset gpid year
local name3 "jcissue jc_sc jc_st jc_gen personwrk_allot hh_wrkd person_wrkd schh_wrkd sthh_wrkd persondgen_wrkd scpersond_wrkd stpersond_wrkd wpersond_wrkd persond labexp_disb matexp_disb labexp_dp matexp_dp"
foreach name3 in jcissue jc_sc jc_st jc_gen personwrk_allot hh_wrkd ///
person_wrkd schh_wrkd sthh_wrkd persondgen_wrkd scpersond_wrkd ///
stpersond_wrkd wpersond_wrkd persond labexp_disb matexp_disb ///
labexp_dp matexp_dp {
}
I really don't know how I should continue after this? Kindly help.
Related Posts with Finding mean in a loop
problem with collect layoutHello Statalisters, I'm having an issue obtaining the table that I want using collect with mi estim…
Need help with graphsI hope someone can help me with my codes as I am trying to show Gender with different household inco…
Poisson regression formulaHello everyone, I am trying to write this Code: xtpoisson patents cl.ln_xrdintensity##cl.Numberof…
How to correct for attrition with IPW in a DID setting?Hi everyone, I am working with a panel dataset from a project that is about giving health and nutri…
Is not a two-way plot typeHello, I keep getting the error not a twoway plot type. Was wondering if anyone had any suggestions…
Subscribe to:
Post Comments (Atom)
0 Response to Finding mean in a loop
Post a Comment