Hello everyone,
I am trying to run a diff in diff in stata. I have more than 3,500 obs, some of them regarding the same individual in two different years, some of them regarding an individual in one of the two years. I have created an "id" variable and i sorted it, so now I can identify the individuals with two obs. The problem is I want to retain only these obs, the panel ones, and drop the obs regarding the individuals analyzed only in one year. Which command should I use? I'm relatively new to Stata, so sorry if the question is utterly trivial and thank you for the answers!
Related Posts with keep only panel obs
Factor Analysis for Customer SegmentationI have done FA and identified the number of segments. However, I am unable to assign each respondent…
haw to make tp fp fn tn on left of accuracy forest plot ?hello , I am a new one for stata ,and i was doing a accuracy analysis ,after my code running ,I got …
Importing SPSS data file into STATA by usespss command, but the date variable did not as expected.Dear statalists, I imported the SPSS data file into STATA by using "usespss" command. But the date …
when I used the command copy ,I encounted "Java installation not found".I am currently intereted in using stata to do webcrawler.When I want to copy the content in https://…
Difference in difference on a cross sectional data set with small number of cluster groupHi, it is on an urgent basis I am running the following regression: with and without mean group ave…
Subscribe to:
Post Comments (Atom)
0 Response to keep only panel obs
Post a Comment