Description Usage Arguments Value Examples
ivsacim is used to fit cumulative intensity models for exposure effects with instrumental variables.
1 2 3 4 5 6 7 8 9 10 11 12 |
time |
the censored event time |
event |
event indicator |
instrument |
the instrumental variable |
IV_valid |
whether assuming IV satisfies the exclusion restriction |
treatment_init |
the initial treatment assignment |
treatment_shift_time |
the shift time of each subject, if no shift for a subject, set as 0 |
max_time |
the max time that we threshold for nonconstant effect |
max_time_bet |
the max time that we threshold for constant effect |
n_sim |
the number of resampling, set as 0 if no resampling is needed |
weights |
optional weights used in the estimating equation |
ivsacim returns an object of class "ivsacim". An object of class "ivsacim" is a list containing the following components:
stime |
an estimate of the baseline hazards function |
dB_D |
an estimate of the increment of the treatment effect |
B_D |
an estimate of the treatment effect |
beta_D |
an estimate of the constant treatment effect |
B_D_se |
an estimate of the variance covariance matrix of B_D |
beta_D_se |
an estimate of the constant treatment effect |
by_prod |
a byproduct, that will used by other functions |
1 2 3 4 5 6 7 8 9 10 11 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.