[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]

From |
Laurel A Copeland <lacop@umich.edu> |

To |
statalist@hsphsun2.harvard.edu |

Subject |
st: Sample restriction in -predict- following regression with -subpop- |

Date |
Thu, 19 Dec 2002 12:14:26 -0500 |

Could someone point me to information on what restriction, if any, is placed on the population for which -predict- produces values, after a regression for which a subpopulation is specified? I do not find -predict- and -subpop- together using -findit-. Here is an example of what we are running.

svypois cesd_2 pred1 pred2 pred3, subpop (cesdage1)

predict predicted

sum predicted cesd_2

The above seems to produce values for the whole sample, not just the subsample. Is that right?

Will this give us the subsample specified by "subpop (cesdage1)" ?

svypois cesd_2 pred1 pred2 pred3, subpop (cesdage1)

predict predicted

sum predicted cesd_2 if cesdage1==1

Thank you,

Laurel & Liz

*

* For searches and help try:

* http://www.stata.com/support/faqs/res/findit.html

* http://www.stata.com/support/statalist/faq

* http://www.ats.ucla.edu/stat/stata/

**Follow-Ups**:**st: Re: Sample restriction in -predict- following regression with -subpop-***From:*"Scott Merryman" <smerryman@kc.rr.com>

- Prev by Date:
**st: Re: out of sample linear prediction in Cox model** - Next by Date:
**st: Roughness Penalty Approach** - Previous by thread:
**st: out of sample linear prediction in Cox model** - Next by thread:
**st: Re: Sample restriction in -predict- following regression with -subpop-** - Index(es):

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