Hello everyone,
I'm trying to save some graphs, and the code is working for saving them, but I can't seem to title them anything useful.
Here is the code:
levelsof Fullid, local(cpm)
foreach i in `cpm'{
twoway connected mhos cpn if Fullid==`i', title("`i'")
qui: graph export "$Raw Data`i'.pdf", replace as(pdf)
}
My problem is that I'd like to use the values of Fullid as the title, but because I'm using levelsof for the loop I just end up with each graph being titled 1, 2, 3 (etc. for each level of Fullid). Does anyone have a work around for this?
Related Posts with Titles for graphs in loops
Repeated measures ANOVA: Standard errors of estimated marginal means produced by Stata's margins were different from that of SPSS's EMMEANSHi, Why the SE's of estimated marginal means differ in this case? And which one should be used if w…
Export cross tabulation table to excel using stataHello folks, this may be a dumb question, but how can i get a cross tabulation output export to exce…
estout by Ben Jann (available from ssc): Add horizontal lines to table, csv formatHello, after three hours of trying and searching, here is my question: Is there an elegant way to a…
correlation across error terms in nlsurHi all, I am unsure on how to impose the correlation across the error terms in nlsur. Thanks in adv…
Syntax for FMM Regression for Multiple Observations Within CasesI need to estimate a 3-latent-class FMM regression (with a continous dependent variable) analyzing a…
Subscribe to:
Post Comments (Atom)
0 Response to Titles for graphs in loops
Post a Comment