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)
Lagging Date Varlist by one period for all observations within the period.Hi! I am writing my master thesis and I base part of my research on a certain paper. In the paper, …
Panel data - all dummies omitted because of collinearityHi everybody, I'm using panel data to examine the effect of immigration on house prices and I am tr…
Diff-in-diff with matchingHello, I am working on a project which uses diff-in-diff with propensity score matching techniques a…
Fixed Effects Pooled OLS Panel Data RegressionDear all, Thanks for your time reading this. My data has small T and large N. When I use Hausman t…
long invalid varnameHello! I have data where the ID is a string variable str123, and I was trying to merge it to anothe…
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