Hello,
I have issues with the command to generate a graph which will show a change of my variable over time.
I have panel data for 10 industries between 2006-2017. I would like to graph a change in their investment in computer hardware: although each industry differs in investment at the base year (2006), I would like to assume that all 10 industries start at 0 change, and then show how their investment expenditure has changed over time.
What I have done so far is:
xtset industry time
gen changehardware = (hardware - L1.hardware)/ L1.hardware
xtlinechangehardware, overlay
However, this way there is a difference between them even at year 2006. Could someone please help?
Related Posts with graphing a change with xtline
Stata-Python interface sfi.setLocal is not workingHello, I am trying to fit a naive Bayes model on Stata dataset by using the Stata-Python interface.…
interpreting categorical odds ratiosI ran a logistic regression to look at the difference of an outcome ( low birth weight infant) among…
question about a r(101) errorDear all, I get an r(101) error while running the following code (the error is "factor variables an…
Assumptions for a mediated model with multiple fixed effects regressionsDeal all, I am trying to study a mediating model with multiple fixed effects regressions and before…
Summary StatisticsDear People, How do I get from the attached STATA file, to the attached output table? Kind regards…
Subscribe to:
Post Comments (Atom)
0 Response to graphing a change with xtline
Post a Comment