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
Sum if/byHello Everyone, I have the following dataset: bse_mkt_cap date2 ind_num2 1325.5 02apr1996 10 185.8 …
Tracking a particular variable in a panel dataset over timeHi everyone, I have the following panel dataset. I would like to track ASINs that change from being…
xtpoisson fixed effects when both endogenous variable and IV are binaryDear all, I am using Stata 15.1 and I would like to conduct panel poisson iv regressions for 67 cou…
Lag selection for Granger CausalityHello. I want to know the causality between GDP and Employment.( I have two time series data: GDP a…
Unbalanced Panel Data - Regional Code for only the last yearDear professors, fellow PhD candidates, and members of this forum, I just subscribed to the forum ho…
Subscribe to:
Post Comments (Atom)
0 Response to Finding mean in a loop
Post a Comment