Question 1:
I am using two fertlity variables- age at first intercourse (var name: age1stsex) and age at first birth (var name: age1stbirth).
I need to drop observations if a woman reported having a child at a certain age, but not having their first sexual intercourse at that age or before. Can you help me how to drop those observations by matching the records?
Question 2:
I have another vaiable - total number of child births (var name: ch_birth).
I want to generate the total fertility (i.e total number of child births) by a given age [This will be my main dependent variable. I want to run my regressions using this variable created for different age. So I basically will have several dependent variable.]. Along with that I would like to restrict the sample to only include observations older than the age specified while calculating the variable. What is the easiest way to code this?
Related Posts with Dropping Observations and Creating Fertility Variable
shortcut referring to independent variables for regressionHi STATA, I have a dataset with about 400 independent variables and 4 mill rows. I want to run a lo…
Should the TWFE estimate results from the did_multiplegt command match those generated by reghdfe command?Hello everyone, I am using the -did_multiplegt- command developed by Clément de Chaisemartin Xavier…
Help required with identifying observations between two datasetsHello, I am working with a dataset where I have identified 7,286 observations. These observations b…
Searching distinct identifier in a folderHi everyone, I have the following issue. In one folder, I have stored different xlsx files. Each fi…
Disaggregation with inequal7 functionHello, I am working with income dataset for household level and calculating GINI index with inequal…
Subscribe to:
Post Comments (Atom)
0 Response to Dropping Observations and Creating Fertility Variable
Post a Comment