Hello all,
I want to do something pretty theoretically simple (that I used to do myself, but have completely blanked on how to do). I have a panel data set, and I want to create quartiles based on the value of the outcome variable in the period before treatment. The point is to track whether treatment affected units in different quartiles differently, so I want the value of the quartile variable to be the quartile on the period before treatment in all periods (for all observations within a unit). I don't want to create quartiles per period, I want to create quartiles in one period and get the quartile in that period to show as the value of the quartile variable across all periods.
Thank you in advance for any help provided. I don't include a data sample because I don't think it's necessary as this is a general question, but I can add one if need be.
Related Posts with Creating quartiles on a panel data set based on a variable's value in one period
Creating Bar Graph with LineDear all, I was wondering if there is someone who can help me with regards to my bar graph. With th…
Stata help overconfidence MeasureHi, I am doing research which requires me to calculate a variable of Overconfidence measure for CEO…
Creating a new data set (monthly to yearly)My monthly data set looks like the following. Code: +---------------------------------------+ | …
How to interpret results from xtreg difference in differencesHi- This is my first time posting. I have read a number of super helpful posts (thank you Clyde Sch…
Counting groups that have duplicate set of values within a variableThe structure of my data for this task includes two variables of interest: GroupID and Name: Grou…
Subscribe to:
Post Comments (Atom)
0 Response to Creating quartiles on a panel data set based on a variable's value in one period
Post a Comment