Hi, I am working with the Health and Retirement Study and going to use the mean of observations across waves as the study sample(collapsed sample). But I also want to restrict the age of respondents to 50-65 in my final study sample but am confusing the strategy to achieve this goal. The reason I want to use the collapsed sample is that I want to make my study sample only one observation per person in order to match it with the genetic sample. I have two ideas:
1. drop those whose age<50 or age>65 from the panel sample, and then collapse this panel sample to my final study sample. This is like a rolling sample, people will be excluded from the sample if he is over 65.
2. Do nothing in the panel sample, but drop observations based on the birth year of the respondent in the collapsed sample.
Does anyone have any suggestions for me? Many studies have the step of restricting age in the study sample (for example, the one study attached below), but I am not sure what I should do.
Thanks in advance! Array
Related Posts with Problem of selecting observations from the collapsed sample
drawing normally distributed random variable within an intervalHello everyone, How can I create a normally distributed variable within [a,b], with HTML Code: me…
Creating start and end variablesHello, I would like to create start and end variables according to the data collection wave in which…
Creating indicator variables xi, prefix() for an interaction termHi STATA friends, I aim to generate indicator variables regarding the interaction term c.budgetbala…
How to select the observation with a date that is closest to another date in STATAI have multiple blood test results for single pregnancies and wish to select the blood test result t…
Online courses/Summer school to learn STATAHello, I am looking for a short courses during the summer in Europe to learn some knowledge using S…
Subscribe to:
Post Comments (Atom)
0 Response to Problem of selecting observations from the collapsed sample
Post a Comment