Hi everyone! I'm working on my Master's thesis and I need help.
I'm working with census data, and I need to analyze the family context of teenage women, therefore I need to consider all the members of each family, grouped into households. I made a unique code for each household, which is repeated among all family members, and I grouped them with "group" to be able to count them. Now I need to filter and keep only households where a teenage mother (<19) lives. I have the variables "do you have any alive-born child?" and "Age groups". I tried with the command "bysort group: keep if hjs_vivos==1" (1 is "I have alive children") but it drops all the members and only keeps women with children. Maybe I miss some steps before or that is not the command I need.
Thank you in advance!
Related Posts with Filter households' data from a census
Unknown correlation between regressorsDear Statalist, I am grateful for any help on the following question: I have several datasets, eac…
stpm2 tvc df graphGood morning. I am a researcher unfamiliar with stpm2. I have some questions regarding stpm2 executi…
Extract date from a string variable containing other textHello Experts, I have poorly entered data where date is embedded within text (var1). I need to extr…
Survival analysis in StataDear Stata Users, Please help me with the following issue. I have the data below where “gvkey” is a…
stpm2 graphGood morning. I am a student unfamiliar with stpm2. I have a rudimentary question regarding stpm2. F…
Subscribe to:
Post Comments (Atom)
0 Response to Filter households' data from a census
Post a Comment