Statalist The Stata Listserver


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

[no subject]



> and for the teacher-level dataset
> gen teacher_weight=weight*(1/number_teachers_in_level)
> svyset school_code [pw=teacher_weight], strata(strata) fpc(numschools_bystrata) || teacherid

You could also want to specify the -fpc- at the second level to be the
number of teachers in the school.

-- 
Stas Kolenikov
http://stas.kolenikov.name
*
*   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/



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