Statalist


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

st: multilevel


From   "Daniel Macneil" <[email protected]>
To   [email protected]
Subject   st: multilevel
Date   Tue, 18 Mar 2008 09:50:24 -0400

Folks,

I am stumped on what i thought was an easy problem. I have children (id_code) within families(household_code) who go to school (1) or not(0). How do I find the mean values (or even table) at the household level for how many children are in school? I know I can use xtsum to get the std dev within and between, but about just finding out: the number of families with ALL children in school, SOME children in school and NO children in school, e.g.

+--------------------------------------------+
| househ~e id_code sex age school |
|--------------------------------------------|
4. | 1 4 Female 6 0 |
9. | 2 3 Female 12 0 |
10. | 2 4 Male 8 1 |
14. | 3 3 Female 12 0 |
15. | 3 4 Male 10 1 |
|--------------------------------------------|
16. | 3 5 Male 14 1 |
23. | 4 3 Female 14 0 |
24. | 4 4 Female 12 1 |
25. | 4 5 Female 6 0 |
32. | 5 5 Female 13 . |
|--------------------------------------------|
*
* 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