Hi! I m at the beginning of this software and I have to resolve this exercise. Can someone help me?
"Generate a new variable for birth cohorts named “coho” and categorize the year of birth into cohorts with each cohort covering five years (e.g. 1944-1948, 1949-1953, etc.). An exception is the youngest cohort, which spans only over three birth years."
How can i write it? And then to find that years?
Thank you in advance!
Francesca
Related Posts with Help me I m new with STATA
Converting Composite Categorical Variables to Binary VariablesHi all, I'm new to Stata and am running into trouble with setting up a dataset for use. The issue …
How can I use the command captureHey, I want to use command capture to gen the variable years for all my databases that dont have it …
logistic risk prediction modelHi, I have developed a risk prediction model for Outcome (binary) based on 4 binary variables. I de…
Append ignoring different variable namesI have a big dataset that I need to append: Dataset1 and Dataset2. I need to append Dataset2 from Da…
Merging DatasetsDear all, I am trying to merge two datasets that contain sectoral information on value added, numbe…
Subscribe to:
Post Comments (Atom)
0 Response to Help me I m new with STATA
Post a Comment