Hi there,
I'm investing the role of house prices on happiness and am using a FE model. The data has the original house price the respondent bought the house at in the year they bought it (e.g. $1m in 2006), however I want to generate a variable that keeps that $1m figure until/if they buy a new house
For example:
2006 = $1m (original entry in dataset)
2007 = $1m
2008 = $1.5m (original entry in dataset = bought new house)
2009 = $1.5m
2010 = $1.5m
Right now my data set would record $1m, . , $1.5m, . , .
I would really appreciate any help possible on creating this variable. Thank you in advance!
Related Posts with Keeping a variable value over years that was only answered once
marking ticks in the bar graphHi, Below is my graph that I used to generate the following graph. I want to add ticks to the middl…
Interpreting Fisher-type unit root tests in panel dataHello, I have an unbalanced panel data set consisting of N=25,102 and T between 1-35 years (on aver…
How to tackle the r1400 error message with xtmixedHELLO< I have repeated measures data where patient scores are measured over four visits. The tim…
Aggregation of pre-post treatment data (5 year intervals)I am trying to efficiently aggregate the IDA dollar (all_ida) amounts for the 5 year period before t…
How to destring date/time with commaHello, I have a date/time variable formatted in the following way: "01-24-2019, 03:26 PM" and canno…
Subscribe to:
Post Comments (Atom)
0 Response to Keeping a variable value over years that was only answered once
Post a Comment