You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Example of time-on-study as the time-scale:
o=censored X=event
------------------------------o 36 months
--------------------------o 34
------------o 18
-------X 12
------------------X 24
------------------------------o 36
0 12 24 36
Months since baseline
Example of age as the time-scale:
o=censored X=event
50-----o 53
52----------o 55
54----------X 57
55------------o 58
56--------------o 59
58---------o 60
Age in years
In R the way to incorporate age as time-scale is to use the code: Surv(age, age + time, status)
Is there a way to do the same for lifelines? From the docs the current CoxPHFitter only takes in a duration_col. How do I incorporate the age in this column?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I came across several methods of defining the timescale when performing a cox regression.
The two main ones are:
In R the way to incorporate age as time-scale is to use the code:
Surv(age, age + time, status)
Is there a way to do the same for lifelines? From the docs the current CoxPHFitter only takes in a
duration_col
. How do I incorporate the age in this column?Beta Was this translation helpful? Give feedback.
All reactions