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
Graph for panel data that combines and plots averageDears, I want to generate linear plots for 18 countries' panel data in one graph. I use the command …
Structure data for repeated measures analysisHello, Can someone please help me organize this data for analysis of repeated measures? I have 7 dat…
combine multiple lines of codes into one command!Hey Statalist, I want to find a way in which I can combine multiple lines of codes into one single …
removing text from string variable with date formatHello, I have a string variable that looks like this: 13-03-2014(Late visited). How can I remove som…
Number of observations for each subgroup at bottom of table and then export to LaTeXI am running two separate t-tests and have created one table for the results which I want to export …
Subscribe to:
Post Comments (Atom)
0 Response to graphing a change with xtline
Post a Comment