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
Dummy Variable and DateI have a dataset that has quit date in %td (DMY) format. I also have two other variables that provid…
Non stationary data transformation questionSo I have some panel data, investment in different regions over the course of a 7 years. It's non st…
Interpret resultsHi, I am quite new in regression, still trying to learn. Initially, i use five independent variables…
Egen .. Group FunctionHello, I have a basic question about what egen and its group function is supposed to do. does it ad…
Possibly Rather Large Mistake; Factor Variables and Multiple Linear RegressionHello, so I thought I was doing a multiple linear regression with the command Code: reg realgvape…
Subscribe to:
Post Comments (Atom)
0 Response to Filter households' data from a census
Post a Comment