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: prvalue after gologit2


From   Richard Williams <[email protected]>
To   "[email protected]" <[email protected]>
Subject   Re: st: prvalue after gologit2
Date   Sat, 20 Jul 2013 23:51:21 +0200

I am out of the country and can't check everything out, but a few thoughts:

gologit2 does not support the svy: prefix command but it does support an svy option. See the help.

You could just explicitly specify the values for the rest of your values, e.g. Compute the weighted means first and then set x3 and x4 to those values.

You can probably use the margins command. It is a little tedious because gologit2 does not support factor variables and (just like ologit and mlogit) you have to write a separate command for each outcome.

Sent from my iPad

On Jul 20, 2013, at 6:25 PM, Francesco Acciai <[email protected]> wrote:

> After I run a gologit2 model (using sampling weights) I use the command prvalue to get the expected probabilities.
> However, the system holds all variables at their unweighted means, while I would like to use the weighted means. 
> 
> This is my syntax:
> 
> xi: gologit2 Y i.x1 i.x2 x3 x4 [pw=WEIGHTS], autofit(0.001) 
> 
> prvalue, x(x1_2=0, x1_3=0) rest(mean) 
> prvalue, x(x1_2=1, x1_3=0) rest(mean) 
> prvalue, x(x1_2=0, x1_3=1) rest(mean) 
> 
> x1 is a variable indicating the region of residence. I would like to get the expected probabilities for the same person (an hypothetical person with a fixed set of characteristics, corresponding to the "average" person in my sample), across these three regions of residence. 
> 
> I saw another inquiry about holding variables to weighted means with prvalue but here prvalue is run after gologit2, which doesn't allow the use of the command "svy". 
> 
> So, my question is: how can I set all the variables at their weighted means when using "prvalue" after "gologit2"?
> 
> Thank you very much,
> Francesco.                         
> *
> *   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–2018 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   Site index