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
asclogit choice model set returns incorrect coefficientsI am using asclogit to analyze a choice model (12 cases with 3 alternatives, 1 independent continuou…
Can I use Kaplan-Meier estimator to predict duration of a treatment?Hi, I don't have much experience with STATA, and so I'm in need for some help. I have a dataset of a…
Can I use a multinomial logit regression analysis using cubic polynomial of time to control time dependence?If not, which method should I use to control time dependence? My dependent variable is categorial. T…
Compatability error while creating a spatial lagged explanatory variableI am trying to create a spatially lagged X variable to run a SLX type model Issue: I get a compatib…
Sharp RD estimation - "Mass points detected in the running variable." issue - 0 nb of observationsDear all, I am currently trying to use a Regression Discontinuity specification to try to estimate …
Subscribe to:
Post Comments (Atom)
0 Response to Titles for graphs in loops
Post a Comment