Learn R Programming

survidm (version 1.3.2)

summary.survIDM: Summarizing fits of survIDM class

Description

Returns a a data.frame or list containing the estimates of the probabilities, its confidence limits and other information.

Usage

# S3 method for survIDM
summary(object, times = NULL, ...)

Arguments

object

A fitted survIDM object as produced by tprob(), CIF() or sojourn().

times

Vector of times; the returned data frame will contain 1 row for each time. Missing values are not allowed.

...

For future methods.

Value

A data frame or a list containing the following components:

y

The total time for obtaining the estimates of the probabilities.

est

Estimates of the probability.

lower 95% CI

The lower probabilities of the interval.

upper 95% CI

The upper probabilities of the interval.

Examples

Run this code
# NOT RUN {
fit <- tprob(survIDM(time1,event1,Stime, event) ~ 1, s = 365,
method = "AJ", conf = TRUE, conf.level = 0.95,
conf.type = "linear", n.boot = 50, data = colonIDM)

summary(fit)
summary(fit, times = c(400, 1000, 2900))

    
# }

Run the code above in your browser using DataLab