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
First Difference vs Fixed Effects Serial CorrelationHi, I am running the following regression: xtreg recycling loginc logpopden md11 md12 md13 md14 md…
estout column output helpHello, I'm using the estout command like this: Code: sysuse auto glm foreign price, fam(bin) l…
Multiple legends in combined subplots using the coefplot commandHello all. I am running a bunch of regressions, each with a different dependent variable using the s…
Why do different fixed effects change some coefficients during robustness tests?Hello everybody, I am currently investigating the effects of a host country's domestic war on donor…
Averaging eclass commands across multiple modelsI am working with a data set that has five implicate data sets. For each data set, I am running a re…
Subscribe to:
Post Comments (Atom)
0 Response to Keeping a variable value over years that was only answered once
Post a Comment