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]

st: prvalue with many dummy variables


From   "Vitorino, Maria Ana" <vitorino@wharton.upenn.edu>
To   "statalist@hsphsun2.harvard.edu" <statalist@hsphsun2.harvard.edu>
Subject   st: prvalue with many dummy variables
Date   Sun, 11 Mar 2012 04:30:44 +0000

Dear Statalist members,

If I fit a logit model with many dummy variables such as:

logit pass sex age school_d*

where school_d* includes dummies for schools numbered from 1 to 20, i.e. school_d1, school_d2, ,,,, school_d20

how can I calculate a predicted probability without having to specify values for all the 19 schools that take value 0?

For example, suppose I want to do something like
prvalue x(sex=1 age=20 school_d1=1 school_d2=0 school_d3=0  etc)

Is there a way of not having to write  in the command line above that school_d[i]=0 for every i other than 1?

Any help is appreciated.
Thanks!
Ana
*
*   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