Hi. I am working with paneldata.
I want to remove individuals who don't have a value for each year in the period, but also keeping those who always have zero value. I will try to illustrate:
ID year X
1 2010 0
1 2011 0
1 2012 0
2 2010 0.01
2 2011 0
2 2012 0.011
3 2010 0.01
3 2011 0.01
3 2012 0.011
I want to keep indivdiuals like number one here. This is to serve as a control group in my DD regression. I want to remove individual two because treatment is not stable over the years. And I want to keep individual 3, because treatment occours in every year.
All help is appreciated. Thank you!
Related Posts with Removing individuals based on criteria
Addstats at the bottom of the table Dear all, I want to make a table of regression output like this: .(see the pic) But I want to add…
graph bars that stack positive and negative valuesHi everyone, I'm trying to create a graphic with horizonal bars in which I could stack positive an…
String variable related commandsHi, I have two queries regarding the following string variables in my database: 1. String Variable…
Price trendHi all, I have a panel data of Molecules observed in quarters in each country a follows: Code: * …
Confused why my R^2 is either 0 or 1Hi All, I am a bit confused why my r2 value seems to be either very close to 0 or very close to 1. …
Subscribe to:
Post Comments (Atom)
0 Response to Removing individuals based on criteria
Post a Comment