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
Interpretation of the interaction terms of two categorical variables in Non Linear modelsHi, I have been searching online but cant find much. I need help in understanding the interpretatio…
Create a control group matching categorical and continuous variablesDear all, I am analyzing whether a CEO turnover (c. 600 events) has a long-term impact on operating…
How to Esttab SHOWING THE FIRST STAGE ONLY (Without Showing the Second Stage) with ivreg2?Hi! My question is how to use Esttab to show the first stage WITHOUT Showing the Second Stage with i…
Fill in missing information for only specific observations Code: * Example generated by -dataex-. To install: ssc install dataex clear input byte survey int …
Running a regression and variables are omitted due to collinearity but i don't know whyHi i was wondering if anyone could help me I am running the following tobit regression: Code: to…
Subscribe to:
Post Comments (Atom)
0 Response to Panel data
Post a Comment