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]

Re: st: Plot predictions of multiple variables in one plot (logit model)


From   Maarten Buis <[email protected]>
To   [email protected]
Subject   Re: st: Plot predictions of multiple variables in one plot (logit model)
Date   Fri, 7 Mar 2014 11:04:08 +0100

One mistake is the use of the -xi:- prefix in combination with
-margins-. If you want to use -margins- and -marginsplot- you have to
use the factor variable notation, -help fvvarlist.

-- Maarten

On Fri, Mar 7, 2014 at 10:53 AM,  <[email protected]> wrote:
> Sorry for the  mistake in the previous mail. Of course the message should not have been displayed in the subject line.
> my apologies,
> flaiva
>
> ***
>
>
> Dear all,
>
> I  am running a logit model with three dichotomous variables and other  controls. I would like to plot the predictions of these three variables  in one plot but I cannot figure out how to plot them so that they do not  overlap in the graph. Is there a way to do this?
>
> xi:logit Dependent Jobless CurrentU IndirectU x1 x3 x5 i.x6
> estimates store M1
>
> margins , at(Jobless=(0 1) CurrentU==(0 1) IndirectU==(0 1)
> marginsplot , legend(subtitle("Predicted outcome and 95% confidence intervals")) title( Public job) recast(dot)
> graph save J1.gph
>
> Any help would be highly appreciated.Kind regards
> Flavia
>
>
> *
> *   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/



-- 
---------------------------------
Maarten L. Buis
WZB
Reichpietschufer 50
10785 Berlin
Germany

http://www.maartenbuis.nl
---------------------------------

*
*   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–2018 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   Site index