I wrote the following code and got an error "invalid varlist":
scatter capstateratio6 year, by(prov) yaxis(1) || scatter cappriratio6 year, by(prov) yaxis(1) ///
|| scatter capforratio6 year, by(prov) yaxis(1) || scatter expphypc year, by(prov) yaxis(2) ///
|| scatter explaw4pc year, by(prov) yaxis(2) || scatter expssepc year, by(prov) yaxis(2), ///
xlabel(1999(2)2006, angle(45)) ///
ytitle(1)("S/N/F capital ratio (%)") ytitle(2)("fiscal spending on P/I/L public goods (%)")
legend(order(1 "S(%)" 2 "N (%)" 3 "F (%)" 4 "P" 5 "I") 6 "L"))
Many thanks!
Linghui
Related Posts with How to graph one figure with several variables using the left yaxis and several other variables using the right yaxis (xaxis is year)?
Cutting all but the first two digits of a numeric variable of varying lengthHello, I have a numeric variable with values of varying lengths. I would like to cut all but the fi…
Pooled OLS and Random EffectsHello everyone, Was just concerned as I have a set of panel data obvservations, and when running reg…
Creating individual-level variables representing the characteristics of co-resident persons (e.g. age of mother)Hello. I am using CPS data and am trying to transform the data using the household id number, the li…
error merge m:1 no? unique numbers in using dataHi there, I am trying to merge 2 datasets with m:1, on keyvar ID. i am getting an error that "variab…
Pairwise correlationsHi, I am a very new user in Stata and need help with obtaining only relevant correlation coefficien…
Subscribe to:
Post Comments (Atom)
0 Response to How to graph one figure with several variables using the left yaxis and several other variables using the right yaxis (xaxis is year)?
Post a Comment