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
creating change variables in panel-structureDear Statalists, I am currently working on my master thesis with Paneldata from the German Socioeco…
Structural Impulse Response FunctionsI'm currently doing a SVAR model and the command I input for the structural impulse response functio…
Fighting spaghetti: some small devices using linkplotA common kind of question on Statalist concerns plotting multiple time series. Spaghetti -- tangled …
average annual growth rates in panel dataDear all, I am currently working with a panel dataset, where I have country and year as indicators,…
Calibration Plot - Cox PH ModelHello, I would like to create a calibration plot of my cox proportional hazard model. I ran goodnes…
Subscribe to:
Post Comments (Atom)
0 Response to graphing a change with xtline
Post a Comment