Dear Stata-Listers,
I have the feeling that the solution is quite easy. However, I just can't figure it out.
So, I have cross sectional data for regional districts in Germany with differing observations per year, for the years 2012 to 2015.
The variable A is asked in the years 2014 and 2015.
A year district
When:
reg A year
I get beta=60.9
What I would like to do now is set variable A in the year 2013 to A(2014)-60.9 for each district separately.
Related Posts with Creating forward values in cross-sectional data
Instrumental Variables (as Two Stage Least Squares 2SLS)Hello guys, Please I need help, I have questions about Instrumental Variables (Two Stage Least Squa…
Moderation effect Graph in StataHi everyone, I have been trying to plot interaction graphs for one of my research works, but I have…
variable not found Code: * Example generated by -dataex-. To install: ssc install dataex clear input str3 countrycode …
variable not found Code: * Example generated by -dataex-. To install: ssc install dataex clear input str3 countrycode …
Long to wide with continuous timeHi everyone, I am looking for a way to convert a dataset from the long format to a wide format. How…
Subscribe to:
Post Comments (Atom)
0 Response to Creating forward values in cross-sectional data
Post a Comment