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]

Re: st: Conditional Effect Plots after mi estimate


From   Ulrich Kohler <ukohler@uni-potsdam.de>
To   statalist@hsphsun2.harvard.edu
Subject   Re: st: Conditional Effect Plots after mi estimate
Date   Sun, 17 Feb 2013 11:40:15 +0100

I haven't tried it, but my guess would be that the official Stata
commands -margins- and -marginsplot- work after -mi-:

. sysuse auto
. logit for weight length
. margins, at(weight =(1760(100)4840) length=(150(25)225))
. marginsplot, by(length)



Am Samstag, den 16.02.2013, 11:22 +0000 schrieb
michael.beck@edu.unibe.ch:
> Dear Stata List Community
> 
> After perfoming a Logistic Regression on Educational Transitions like the following:
> 
> logit y x1 x2 x3 ... xi, vce(cluster school)
> 
> where y is the choice between two different Educational Tracks and xi are the predictor variables (like social class, GPA and migration background), i want to produce conditional effect plots, that are showing the change in transition probabilities for indivuals given certain characteristics for different values of GPA. Thanks to the command 'prgen' this ist pretty easy, my command for that looks like this:
> 
> prgen gpa, from (4) to (6) gen (pr1) x (x1 =0 x2=1) rest (mean)
> prgen gpa, from (4) to (6) gen (pr2) x (x1 =1 x2=1) rest (mean)
> 
> twoway (scatter pr1p1 pr2p1 pr2px)
> 
> Now if I want to do the same with imputed data, the command prgen doesn't work with results from regressions like:
> 
> mi estimate: logit y x1 x2 x3 ... xi, vce(cluster school)
> 
> There seem to be solutions for similar problems, but not the same problem (e.g. for svy data) and the more I'm searching, the more confused I actually get. Is there a "simple" solution for plotting Conditional Probabilities after mi estimate: logit?
> 
> Thanks a lot
> Michael
> *
> *   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/


*
*   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