Hi everyone,
I think my question is quite simple but I wasn't able to solve it.
I have a panel dataset with information on 280 housing units over 24 time periods (years). For every unit and period I have the monthly rent of the unit (rr) and a dummy called t_change, which takes on value 1 if a new tenant enters the unit during that year.
I want Stata to generate a variable reporting the difference between the rent paid by tenants who just entered the unit (so, the rent paid in years when t_change = 1) and the rent paid for the same unit in the year before (by the old tenant).
What is the easiest way to do this?
Aurora
Related Posts with Generating a variable reporting the difference between values of another variable considered in different years (Panel dataset)
how can i comment the coefficient between latent variable and outcome (categorical 0,1)how can i comment the coefficient between latent variable and outcome (categorical 0,1) such as this…
changing the color of just one bar in a single category bar chartIm trying to generate a bar chart with one of the bars representing the average value across all IDs…
-oaxaca- not correctly calculating the difference between groupsHi, I am using the -oaxaca- command and appear to have errors in my results. I am calculating the de…
What type of model(s) can I use for my (definitely not linear) dependent variable?I have dependent variable, measured with a range of 0-100% (nevertheless it takes on fairly few vari…
Heteroscedasticity + Multicollinearity in panel dataHello, I am in the proceedings of my bachelor thesis and I collected a panel data set of 22 countrie…
Subscribe to:
Post Comments (Atom)
0 Response to Generating a variable reporting the difference between values of another variable considered in different years (Panel dataset)
Post a Comment