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 <>
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

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: Richard.A.Williams.5@ND.Edu

* For searches and help try:

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