Hi,
I have a problema that I just cant resolve.
I have a dataset with more than 120.000 obs and 66 variables.
I want to graph 1 variable called "Id_momento" (which goes from 1 to 6) through time. If I tab this variable with year I have the next table:
Array
So what I want to do is create 6 graphs (1 for every id code) for the variable Id_momento. I have the next code:
egen sum=sum(Id_momento) if Id_momento==1, by (Año)
twoway (line sum Año), by (Id_momento)
But that only graphs "Preinscritos" and leaves the other graphs empty.
Also I wish to graph the growth rate of this variable for each identificator (1 to 6) but I dont know how to procced to create the variable growth rate.
If you could help me or point me in the right direction it would help me a lot.
Related Posts with How to graph two variables and the growth rate of a variable
Mean of Predictions (Point Estimates)Hey guys, I was hoping you would help me clarify a post-estimation issue I am having in stata. Assum…
InequalityHello What age should be considered in order to calculate the number of children and the number of a…
for loopshello, im trying to split a huge data set into about 400 files so that i can run an analysis on the…
Reshaping Long to Wide when the ID is Not UniqueHi Everyone, I have Stacked on how to manipulate my data to make the Reshape Command Works. In my c…
String variable- code group certain cases- regexm(); regexr(); regexs()???Dear Statalist, I would like to be able to select only those cases in "subp" variable whose value e…
Subscribe to:
Post Comments (Atom)
0 Response to How to graph two variables and the growth rate of a variable
Post a Comment