summary.ivsacim {ivsacim} | R Documentation |
summary method for class "ivsacim".
## S3 method for class 'ivsacim'
summary(object, ...)
## S3 method for class 'summary.ivsacim'
print(x, ...)
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. |
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.
The function summary.ivsacim computes and returns a list of summary statistics of the fitted model given in object.
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)