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

From |
"R.E. De Hoyos" <redeho@hotmail.com> |

To |
<statalist@hsphsun2.harvard.edu> |

Subject |
st: Identifying single psu within strata |

Date |
Fri, 29 Apr 2005 18:50:08 +0100 |

Statalist,

I want to run wage regressions for several population groups. Estimations have to take care of the survey design (svy). The problem is that for some of the groups there are strata with a single psu (primary samplying unit). Using -svydes- I can identify does strata, for example:

For wage equation: svyreg wage_1 varlist_1:

svydes wage_1 varlist_1

And Stata will highlight those strata with a single psu. How can I create a dummy variable that indicates weather a strata has a single psu given the variables that I want to use for the analysis?

In other words I want a dummy variable that takes the value of 1 if -svydes- highlights a strata.

Rafa *

* 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/

**References**:**st: simultaneous equations with discrete endogeneous variables (three choices)***From:*John Jiang <accjiang@gmail.com>

- Prev by Date:
**RE: st: RE: Version control questions** - Next by Date:
**Re: st: RE: Follow up on matrix building question -- correct version** - Previous by thread:
**st: simultaneous equations with discrete endogeneous variables (three choices)** - Next by thread:
**st: TextPad Question: why is my 'rundo.exe' not working?** - Index(es):

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