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
Generate a new variable in a loop in different files and calculating the meanHi, I want to write a loop to generate a new variable called savings (income-expenditure) in two se…
Looping Over the numeric value of a variable and use it for the subsequent loop.Hi, thanks for your help in advance. I have the following dataset. And I come up with the following …
two stage IV approchbootstrap "repeated time values within panel" 2 SRI I'm trying to run 2sri approach(control functio…
Marginal effect after heckpoissonDear All, I am new to stata and I am using Heckpoisson, a poison regression model with endogenous s…
Numbering occurrences of a flag within patients.In the example below I have created OVERLAP_FLAG, which is equal to 1 where two consecutive regimens…
Subscribe to:
Post Comments (Atom)
0 Response to Help me I m new with STATA
Post a Comment