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
Calculating sample size to estimate Incidence RateHi All, I wish to undertake a longitudinal study. I want to estimate the incidence of 'lost to foll…
Generating new variables out of existing ones using a loopHello, I am working with a dataset which contains daily stock prices of over 300 stocks. Each stock…
Proportion - individual p-valuesDear all I have a data set over local municipalities in Denmark and their individual tax rate. What…
Chi square test or ANOVA?Hi! I have two variables: doctors and their smoking status (smoking or don't smoking). I want to fin…
GeorouteI'm trying to use the georoute command to calculate the driving distance between two geocoded points…
Subscribe to:
Post Comments (Atom)
0 Response to keep only panel obs
Post a Comment