summary.TPidm: Summary method for a TPidm object

View source: R/summary.TPidm.R

summary.TPidmR Documentation

Summary method for a TPidm object

Description

Summary method for an object of class ‘TPidm’.

Usage

## S3 method for class 'TPidm'
summary(object, ...)

Arguments

object

An object of class ‘TPidm’.

...

Further arguments to print.

Value

A data.frame is returned with the following variables:

transition

The initial and final states “i j” for each particular transition.

probs

The transition probabilities P_{ij}(s,t).

Note

The summary function prints the method used, the user-supplied times s and t, the possible transitions, the estimated transition probabilities and, optionally, confidence limits and variances.

If cov is specified, the summary function provides the transition probabilities P_{ij}(s,t) for each level of covariate.

Examples

data(colonTP)
# create a TPidm object with s = 365, t = 1095, cov = "rx",
# CI = FALSE and method = "NM" (default):
nm365cov <- TPidm(colonTP, s = 365, t = 1095, cov = "rx", CI=FALSE)
summary(nm365cov) # summarizing the results

TP.idm documentation built on Aug. 17, 2023, 9:07 a.m.