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]
st: prvalue with many dummy variables
From
"Vitorino, Maria Ana" <[email protected]>
To
"[email protected]" <[email protected]>
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/