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
Extract Year from a string variableHi everyone, I would like to ask some help in order to extract year from a string variable (year of …
Sum variables and division of the result Hi, I would like to sum two variables of my sample and then divide these two results together. Fin…
Logit ModelHello, Which estimator does a logit model use when we do not specify the type of estimator in a log…
Stacked graph bar with marginsplot ?Good morning everyone! I need your help for plotting the results of margins in a nice and straightf…
how to access STATA 16 sever through MAC terminalCurrently, I successfullly installed Stata on my server and can use "./stata" to initiate the progra…
Subscribe to:
Post Comments (Atom)
0 Response to keep only panel obs
Post a Comment