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
Import a folder with .csv filesDear all, I am trying to import a folder with .csv files to stata. Each file corresponds to a month…
Generalised Difference in Difference QuestionMy topic is on the Affordable Care Act's Medicaid expansion which happened in America for different …
Why do we estimate and report unadjusted regression results besides adjusted?Hi All, I hope you are well! I am wondering why do we have to estimate and report unadjusted regres…
Testing for Interaction, C.Logistic Regression: Colinearity and no observations identifiedHello, I am trying to assess for interaction where the primary association is estrogen use and endo…
Problem with the graph of xtline when using "i." commandHi all, I encountered some problems in graphing xtline diagrams. Here is my code: Code: preserve c…
Subscribe to:
Post Comments (Atom)
0 Response to Finding mean in a loop
Post a Comment