summary.ivsacim: Summarizing Cumulative Intensity Function of Treatment with...

Description Usage Arguments Details Value Examples

View source: R/ivsacim.R

Description

summary method for class "ivsacim".

Usage

1
2
3
4
5
## 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

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
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)

ivsacim documentation built on Jan. 30, 2022, 9:07 a.m.