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
Generating Dummy variables based on Monthly periodHello everyone i am really new to stata and i have an econometrics paper due in a couple days and i …
Generating Dummy variables based on Monthly periodHello everyone i am really new to stata and i have an econometrics paper due in a couple days and i …
Panel data: Creating a variable that identifies respondents who answered a question at least once in a given survey yearGreetings, I'm running Stata 15.1 on OSX and working with panel data. My goal is to assess temporal…
Problem with directoryHi Stata Community, I've used maptile many times before, but recently bought a new computer. All th…
Conversion of monthly sting variable into monthly float variable for time series analysisHello everyone i am really new to stata and i have an econometrics paper due in a couple days and i …
Subscribe to:
Post Comments (Atom)
0 Response to keep only panel obs
Post a Comment