View source: R/general_markov_model.R
initial_fit_em_weights | R Documentation |
Fit the MSM cox model with IPW as the initial value for EM algorithm to fit the illness-death general Markov model
initial_fit_em_weights(data,X1,X2,event1,event2,w,Trt)
data |
The dataset, includes non-terminal events, terminal events as well as event indicator. |
X1 |
Time to non-terminal event, could be censored by terminal event or lost to follow up. |
X2 |
Time to terminal event, could be censored by lost to follow up. |
event1 |
Event indicator for non-terminal event. |
event2 |
Event indicator for terminal event. |
w |
IP weights. |
Trt |
Treatment variable. |
As initial values we use for β_j, j=1, 2, 3, the estimates from IP weighted Cox regression without the offsets, i.e. from the usual Markov model.
A list of objects from survival
package:
event1 |
An object of class |
event2 |
An object of class |
event3 |
An object of class |
fit1 |
An object of class |
fit2 |
An object of class |
fit3 |
An object of class |
Surv
, coxph
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.