Hi,
I am a criminology student analysing survey data. I have two age grouped variables which I would like to combine in Stata:
Age first viewed Movie type 1 (1 (0–4 years) 2 (5–9 years) 3 (10–13 years) 4 (14–15 years) 5 (16–17 years) 6 )18–20 years 7 (21–24 years) 8 (25–29 years) 9 (30–34 years) 10 (35–39 years) 11 (40+ years)
Age first viewed Movie type 2 (same age categories as variable 1 above)
I would like to combine these two variables, telling Stata that if a respondent has viewed both movie types, to record earliest age viewed of the two movie types - i.e. record the age of whichever one came first. In other words, if a respondent first viewed Movie type 1 at age 14–15 years, and viewed Movie type 2 at age 16–17 years, to record the age 14–15 years as this is the earliest age.
At the end I would like one variable measuring the age respondents first viewed either type of movie, with the youngest age recorded if they viewed both types.
Can anyone help? Thank you in advance!
Related Posts with Combine two age group variables, tell stata to use youngest age
Error message: no room to add more variablesHi all, I am trying to combine three DHS surveys by appending them all using following command. us…
Creating plots to investigate non-linear effectsHi, I'm having trouble creating and understanding plots that show a non-linear effect and how this …
Combining MICE with predictive mean matchingI am trying to multiply impute n=30 data sets, and I am hoping to do this using both chained equatio…
Is there a model for Spatial Panel Regression with a binary/dummy dependent variable?Hello, this is my first topic in Statalist. However, I have been using it as reader throughout the l…
Error message: Repeated time values within panelHi, I am struggling to understand why I am unable to xtset my panel data. I have used the Understa…
Subscribe to:
Post Comments (Atom)
0 Response to Combine two age group variables, tell stata to use youngest age
Post a Comment