Hi.. anyone.. who could solve my issue.. i have a panel for 2011 and 2016.... the religion should be same but for me it changes... if its 1 in 2011 it should be 1 in 2016; if 2 in 2011 it should be 2 in 2016 .. so i want to clean my data and erase those households which have difference in religion in both years.. i did try some command but it didnt work.. can some help...
i tried this but this is wrong i am missing something...
by HHID (year), sort: keep if religion==1 & year==2011 |religion==1 &year==2016 & religion==2 & year==2011 |religion==2 &year== 2016 & religion==3 & year==2011 |religion==3 &year==2016
Related Posts with Panel data
Creating a cumulative sumHey everyone and thanks for taking the time. Here is some sample data, that I will use to explain m…
Graphing results of segmented regression (assessing the guideline effects on the rate of dose reduction)Hi STATA experts, Please help out a novice! I need to graphically display results of the segmented…
How to store and export results from a MCA estimationHello dear stata users, I am currently performing a Multiple Correspondance Analysis estimation on s…
How to generate growth rates in a 5 year framework on unbalanced panel data?Hello Stata Community, I am trying to compute the growth rates of gdp per capita per country as sho…
Is there any command that can do the BSADF test?Is there any command that can do the BSADF test? Relevant papers Phillips et.al(PWY,2011),Phillips …
Subscribe to:
Post Comments (Atom)
0 Response to Panel data
Post a Comment