summary.ivsacim {ivsacim} | R Documentation |
Summarizing Cumulative Intensity Function of Treatment with Instrumental Variables Estimation Using Structural Additive Cumulative Intensity Models
Description
summary method for class "ivsacim".
Usage
## S3 method for class 'ivsacim'
summary(object, ...)
## S3 method for class 'summary.ivsacim'
print(x, ...)
Arguments
object |
an object of class "ivsacim", usually, a result of a call to ivsacim. |
... |
further arguments passed to or from other methods. |
x |
an object of class "summary.ivsacim", usually, a result of a call to summary.ivsacim. |
Details
print.summary.ivsacim tries to be smart about formatting coefficients, an estimated variance covariance matrix of the coeffieients, Z-values and the corresponding P-values.
Value
The function summary.ivsacim computes and returns a list of summary statistics of the fitted model given in object.
Examples
n = 400
event = rbinom(n, 1, 0.8)
IV = rbinom(n, 1, 0.5)
trt_init = IV
trt_shift = rep(0, n)
time = rexp(n)/(0.5 + trt_init * 0.2)
max_t = 3
max_t_bet = 3
n_sim = 0
fit <- ivsacim(time, event, IV, IV_valid = TRUE, trt_init, trt_shift, max_t, max_t_bet, n_sim)
summary(fit)
[Package ivsacim version 2.1.0 Index]