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
Confusing behavior by ustrregexs()I'm trying to use ustrregexs to extract substrings from a string. With the data below: Code: clear…
Creating new outcome variable - invalid syntax r(198) problemI have twelve disease variables in my dataset. I want to to create an outcome variable "multimorbidi…
Loop for moving rangeGoodafternoon, I have a file which includes a significant amount of cusips (S&P1500) and dates …
How to change a line pattern within a same graph? Hi, I would like to plot a graph using Code: twoway line and draw a different graph pattern after …
combining several observationsHi I have done a quantitative content analysis on a number of articles and have coded them binary o…
Subscribe to:
Post Comments (Atom)
0 Response to Combining two date variables into one
Post a Comment