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

Re: st: Sequential or hierarchical regression

From   Richard Williams <[email protected]>
To   [email protected]
Subject   Re: st: Sequential or hierarchical regression
Date   Sat, 06 Nov 2004 13:10:58 -0500

At 09:17 PM 11/4/2004 -0800, Kang, Eugene wrote:
I am doing a sequential multiple regression where I start with the base
model: y = a + b1x1 + b2x2

followed by the full model: y = a = b1x1 + b2x2 + b3x3 + b4x4

Try findit hireg and install this program. It does what you want if I
understand you correctly.
Alan Acock
I just looked at -hireg-. Something to be careful of: It does not do a listwise deletion of missing data for all variables in the final model, e.g. I just did a test where the first regression had 500 cases and the addition of more variables shrunk the N to 405 cases. I believe you should be analyzing the same cases throughout it you are going to do incremental F tests like this.

A workaround is to select only cases with nonmissing values, e.g.

hireg y (x1 x2) (x3 x4) if !missing(y, x1, x2, x3, x4)

If I am reading sw.ado right (which I may not be), -sw- gets around this problem by dropping missing data cases temporarily and then restoring the original data set.

Richard Williams, Notre Dame Dept of Sociology
OFFICE: (574)631-6668, (574)631-6463
FAX: (574)288-4373
HOME: (574)289-5227
EMAIL: [email protected]
WWW (personal):
WWW (department):

* For searches and help try:

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