Statalist


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: st: Return results only from observations used in estimated model


From   Richard Williams <[email protected]>
To   "[email protected]" <[email protected]>, "[email protected]" <[email protected]>
Subject   Re: st: Return results only from observations used in estimated model
Date   Sun, 04 Oct 2009 15:23:12 -0400

At 03:17 PM 10/4/2009, John Antonakis wrote:
Hi:

Suppose I run a model using logistic on a data set with 150 observations:

logistic y x z q r

Now, suppose that because of listwise, the number of observations in the
logistic model are 120.

How would I table the results (using say only variable x and z) based
ONLY on the data from the logistic model (i.e., the listwise sample) and
not the whole sample ?

Thanks in advance,
John.

One approach:

logistic y x z q r
logistic y x z if e(sample)

Or, check out nestreg, e.g.

nestreg, lr: logistic y (x z) (q r)


-------------------------------------------
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/help.cgi?search
*   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