Hello.
I have a dataset with multiple follow-up dates (fu1, fu2 etc.) and corresponding morbidity scores (morb_a1, morb_b1, morb_a2, morb_b2 etc).
I seek to identify the follow-up dates closest to certain time points after start of radiotherapy (RTstart) and very importantly their corresponding morbidity scores. The time points are 3, 6, 12, 24, 36, 48 and 60 months.
If the follow-up date closest to this time point has a missing value for its corresponding morbidity, I wish to identify the second-nearet follow-up date and its corresponding morbidity score and so forth.
The format of my follow-up dates are %tdnn/dd/CCYY.
id RTstart fu1 morb_a1 morb_b1 fu2 morb_a2 morb_b2 fu3 morb_a3 morb_b3
Thanks a lot in advance,
Line.
Related Posts with identifying follow-up dates closest to a certain value
putting multiple graphs for quantitative vs categorical variables in one graphHi, I have 7 variables, which are actually for one survey question that asks respondents to rank th…
Difference-in-difference using tobit regression with mediation (controlling for fixed effects)Dear Statalist-users, I want to conduct a mediation analysis in a difference-in-difference setting.…
Issues with inaccurate generate of a new variableHi there, I have recently used a very simple comand to generate a new variable. gen MFN_zero = Imp…
invalid syntax when referencing to variable labels in loopsI'm trying to refer to the labels of variables (to include these in graph titles) when looping on a …
How to export the freqs of multiple variables from stata to excelHello , I have been using tabout to output summaries for 2 X 2 tables quite well. Now a new need ha…
Subscribe to:
Post Comments (Atom)
0 Response to identifying follow-up dates closest to a certain value
Post a Comment