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
Lasso regression with a pooled complex household survey dataHi, I’m trying to develop a linear predictive model with pooled cross-sectional data of eight-year h…
Spmap plotting regression coefficients and indicating significanceHi everyone, I want to plot country specific regression coefficients as well as the significance le…
Missing values in the resgression output tableGoodmorning everyone, My question relates to missing values obtained in the output table of a regres…
Standardized regression coefficientsSorry if I am posting a mundane question. I did enough google search in vain hence thought of postin…
Reshape wide to long: many variables of many yearsHi All, I have a dataset with more than 10 variables of more than 10 years in wide shape. I'm tryin…
Subscribe to:
Post Comments (Atom)
0 Response to Keeping a variable value over years that was only answered once
Post a Comment