Learn R Programming

icpack (version 0.1.0)

summary.predict.icfit: Summary method for an object of class `predict.icfit`

Description

Summary method for an object of class `predict.icfit`

Usage

# S3 method for predict.icfit
summary(object, times, ...)

Value

A data frame (if object was a data frame) or a list of data frames (if object was a list of data frames) with hazards etc linearly interpolated between the time points used in the predict function

Arguments

object

Object of class 'predict.icfit'

times

The time points at which to summarize the predicted hazards, cumulative hazards and survival probabilities, with associated standard errors and confidence intervals

...

Other arguments to plot

Examples

Run this code
# \donttest{
icf <- icfit(Surv(left, right, type='interval2') ~ period + gender + age,
      data=drugusers)
pred_icf <- predict(icf)
summary(pred_icf, times=c(0, 30, 183, 365))
# }

Run the code above in your browser using DataLab