Stata The Stata listserver
[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]

st: predict using a subset of X

From   "Dimitriy V. Masterov" <[email protected]>
To   [email protected]
Subject   st: predict using a subset of X
Date   Sun, 13 Jun 2004 17:57:15 -0500 (CDT)

Is it possible to automatically generate a yhat for a subset of the RHS

Let's say I run a regression:

	reg y x1 x2 .... x100

I want to generate
	yhat=E[y | x1,...,x50]
rather than

Is there some option like predict yhat, for(x1-x50)?


Dimitriy V. Masterov

Center for Social Program Evaluation
1155 East 60th St. Room 038
Chicago, IL 60637
Work: (773)256-6005
Fax: (773)256-6313

1312 East 53rd St., Apt.309
Chicago, IL 60615
Mobile: (773)220-2760

*   For searches and help try:

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