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
Clustered standard errors.This is a conceptual question; I'm struggling to decide whether I should cluster my standard errors.…
Local Average Treatment Effect after BiprobitHi all, I would like to know how to compute LATE after a biprobit model with endogenous binary regr…
Post-test estimations with imputed data using stcrregDear all, I am using Fine & Gray proportional subhazard models to calculate the effect of some …
How to group time datahello I need your help if I want to organize my data and group it by week. for example, I want to ca…
Multiplying freq by another variable.How many | cars do | you own?|| Freq. Percent Cum. ------------+----------------------------------- …
Subscribe to:
Post Comments (Atom)
0 Response to Panel data
Post a Comment