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
Change in the default bandwidth of -lpoly- from Stata 15/16 to 17Hello Stata and Statalisters, The default bandwidth of -lpoly- appears to have changed from Stata 1…
collapse all Variables in StataHi I have number of variables in Stata and I want to collapse in Stata using mean statistics. coll…
Drop observations for date A if > 90 days before or after date BPlease help! How can I write a command in Stata so that..... for each individual ID_number, I unifor…
Variables not constant within tableDear all, I am trying to reshape the following dataset below and I am encountering an error as foll…
A problem in Maximum Likelihood estimation (MLE) "‘lnfj’ invalid name"..Hello everyone, I am learning the MLE model and practicing through the book examples using Stata12.…
Subscribe to:
Post Comments (Atom)
0 Response to Filter households' data from a census
Post a Comment