Statalist The Stata Listserver


[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]

Re: st: prgen question after logit


From   Richard Williams <[email protected]>
To   [email protected]
Subject   Re: st: prgen question after logit
Date   Mon, 09 Apr 2007 16:10:02 -0500

At 02:53 PM 4/9/2007, S J wrote:
Dear all,

I have the following question:

I estimate a model of the form

xi: logit y x1 i.x2

Then I attempt to do the below:
prvalue, x(x2=0) rest(mean)
prvalue, x(x2=1) rest(mean)

But I get an error message:
x1 not rhs variable
invalid syntax
r(198);

Any ideas? Is it that I can't use the xi route for
specifying categorical rhs's and then use prvalue?
x2 isn't actually a variable in the equation. Dummies created from x2 are. So, I think you need to create the dummies yourself. Although, if x2 is already a dummy var, you don't need xi in the first place.


-------------------------------------------
Richard Williams, Notre Dame Dept of Sociology
OFFICE: (574)631-6668, (574)631-6463
HOME: (574)289-5227
EMAIL: [email protected]
WWW: http://www.nd.edu/~rwilliam

*
* For searches and help try:
* http://www.stata.com/support/faqs/res/findit.html
* http://www.stata.com/support/statalist/faq
* http://www.ats.ucla.edu/stat/stata/




© Copyright 1996–2024 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index