| ![]() |
From | Richard Williams <Richard.A.Williams.5@ND.edu> |
To | statalist@hsphsun2.harvard.edu, statalist@hsphsun2.harvard.edu |
Subject | Re: st: saving a sample after a regression |
Date | Mon, 12 Mar 2007 15:56:46 -0500 |
At 02:47 PM 3/12/2007, william.miles wrote:
Hi-Consider using nestreg, e.g.
I am running regressions with several variables, and not all observations have
data on all variables. I run a regression of Y on X, and use say 1,000
observations. Then I run a regression of Y on X and Z, and because not all
observations have Z, I only get a sample of 800 observations. Is there any
way to save the sample from the latter regression, so I can then run the
original regression of Y on only X, but using only the 800 observations that
include Z, without having to go throught the data by hand?
Thanks,
Bill
© Copyright 1996–2025 StataCorp LLC | Terms of use | Privacy | Contact us | What's new | Site index |