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
using tabstat for mean annual procedure volumeGood morning, I have a dataset of companies (ik), case-number, year, procedure-type and quintiles. …
Automate file names using current dateHi All! I'm trying to create a local string reflecting the current date in the format, "YYYY-MM-DD"…
Calculations of quarterly stock holding data by shareholderDear Statalists, I am dealing with an unbalanced panel data for calculating the share holdings by a…
Major change in coefficient when adding a squared variable in fixed effects model. Interpretation?When I use the xtreg command with fixed effects to look at the correlation between use of marijuana …
ANOVA test for clusteringHi, I want to check whether there is a need to cluster my results. I am doing a panel regression re…
Subscribe to:
Post Comments (Atom)
0 Response to Filter households' data from a census
Post a Comment