Bookmark and Share

Notice: On March 31, it was announced that Statalist is moving from an email list to a forum. The old list will shut down at the end of May, and its replacement, statalist.org is already up and running.


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

st: Contour plot help


From   Carolina Echevarria <bebaechevarria@gmail.com>
To   statalist@hsphsun2.harvard.edu
Subject   st: Contour plot help
Date   Fri, 22 Feb 2013 12:46:27 -0500

Im working with a multivariable logistic regression and I am trying to replicate the contour plot showed here (last slide)
http://www.stata.com/meeting/chicago11/materials/chi11_rising.pdf

I have two continuous variables (will like to use it as x & y axis) and also I calculated the Predictive margins [Pr(outcome), predict()], but Im not able to save it to use it later in the two way contour plot as my z var.

This is what I did:
quietly logit outcome varX varY 
margins, at( varX=(1(0.5)5))

but then Im stuck 
I try to save the margins using estimates store, but didnt work

Thanks,

Carolina


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


© Copyright 1996–2014 StataCorp LP   |   Terms of use   |   Privacy   |   Contact us   |   Site index