Displaying 1 result from an estimated 1 matches for "71622l".
Did you mean:
71622
2009 Jun 03
2
Create a time interval from a single time variable
...,2), NA))})
This doesn't do what I thought it would. I know that I could write a double loop to look at each subject and the differing number of observations for each subject, but would like to avoid that it at all possible.
Sample of 2 subjects:
sample1 <-
structure(list(ID = c(71622L, 71622L, 71622L, 71622L, 71622L,
71622L, 71622L, 71622L, 71622L, 1436L), Age = c(0.008, 0.085,
0.123, 0.277, 0.441, 0.517, 0.594, 0.715, 0.791, 6.968), DaysEnrolled = c(0L,
28L, 42L, 98L, 158L, 186L, 214L, 258L, 286L, 0L), HAZ = c(NA_real_,
NA_real_, NA_real_, NA_real_, NA_real_, NA_real_, NA_real_...