Hi,
I have a dataset with information from two different registers. The registers contain the same type of observations (presence or absence of disease, coded as 0 or 1). My dataset contains 5 variable;
ID
date (for entry in register 1)
disease (in register 1)
date (for entry in register 2)
disease (in register 2).
I need to identify the first time study participants were coded as 1 (first time diagnosis) in either register 1 or 2. Anyone knows of a way to achieve this?
Best wishes,
David
Related Posts with Combining two date variables into one
Implied cost of capital - mm_root with > 10 argumentsDear all, In the course of my Master's thesis I intend to calculate an implied cost of capital (ICC…
factor-variable and time-series operators not allowed r101Hello experts I'm trying to perform a Stratification-Multilevel analysis using the hte package. How…
For-each loop to sum across groups of observationDear All, I have a dataset structured as follows. It is actually an Input Output (IO) matrix. So yo…
Help with scatterplotIn Stata 17, how can I make a scatter plot of X and Y variables, showing two distinct groups as in t…
Stratified Cox regression R vs. Stata - can R do more?Hi I am a regular Stata user, but I'll also looking into solving problems in R. Here, I have problem…
Subscribe to:
Post Comments (Atom)
0 Response to Combining two date variables into one
Post a Comment