Bookmark and Share

Notice: On April 23, 2014, Statalist moved from an email list to a forum, based at statalist.org.


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

st: Running loops with graphs


From   Sebastian Galarza <[email protected]>
To   [email protected]
Subject   st: Running loops with graphs
Date   Thu, 26 Apr 2012 13:18:22 -0400

Hi, 

I am working on a large dataset and need to run different goodness of fit tests, graph these and save the graphs separately. I am not sure how to go about it. 

Basically, I want to run the following tests for up to 51000 values of i

nl (WOR = {b0=0.1}*(1 * exp({b1=0.05}* (ageyear))))
predict a

nl log3: WOR ageyear
predict b

nl gom3: WOR ageyear 
predict c

I would ideally save this output for each value of i.  

twoway (scatter a y) (line a y, sort), legend(off) aspect(1)
twoway (scatter b y) (line b y, sort), legend(off) aspect(1)
twoway (scatter c y) (line c y, sort), legend(off) aspect(1)

I would ideally save these three graphs as one image for each value of i. 

Any help in doing this would be greatly appreciated. 

Best, 

Sebastian


*
*   For searches and help try:
*   http://www.stata.com/help.cgi?search
*   http://www.stata.com/support/statalist/faq
*   http://www.ats.ucla.edu/stat/stata/


© Copyright 1996–2018 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   Site index