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 on April 23, and its replacement, statalist.org is already up and running.


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

Re: st: prvalue command after logistic regression


From   Maarten buis <maartenbuis@yahoo.co.uk>
To   statalist@hsphsun2.harvard.edu
Subject   Re: st: prvalue command after logistic regression
Date   Fri, 20 Aug 2010 20:14:32 +0000 (GMT)

--- Weichle, Thomas wrote:
> I'm trying to produce predicted probabilities after running a logistic
> regression using the prvalue command.  The prvalue command doesn't like
> factor variables from a previously run logistic regression.  Has anyone
> figured out a way to get around this issue?  I'd rather not have to
> create dummy variables for each of the factors of a categorical
> variable.

The best solution is probably to use official Stata's new -margins- 
command for those predictions and their standard errors/confidence 
intervals.

Hope this helps,
Maarten

Ps. -prvalue- is a user written command, and the Statalist FAQ askes
everybody to specify where they got it from. This is important
because there are often multiple versions floating around in cyber
space and the answer may well depend on which version you are using.

--------------------------
Maarten L. Buis
Institut fuer Soziologie
Universitaet Tuebingen
Wilhelmstrasse 36
72074 Tuebingen
Germany

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


      

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