Learn R Programming

p3state.msm (version 1.3)

summary.p3state: Summary Methods for an p3state Object

Description

Provides results for an object of class p3state. It gives the estimated transition probabilities, bivariate distribution of the gap times and marginal distribution of the second gap time (the last two only available for the progressive three-state model). Provides also the results for the fit of semi-parametric Cox regression models.

Usage

"summary"(object, model = NULL, covmat = NULL, estimate = NULL, time1 = NULL, time2 = NULL, ...)

Arguments

object
an object of class p3state.
model
A character string specifying which model(s) to fit. Possible values are "TDCM", "CMM" and "CSMM". If NULL none of the regression models will be implemented.
covmat
Return the variance-covariance matrices? By default covmat=FALSE.
estimate
If TRUE nonparametric estimates are given. These include: transition probabilities, bivariate distribution function and marginal distribution of the second time (the last two only for the progressive three-state model).
time1
The first time for obtaining estimates for the transition probabilities, bivariate distribution function. NULL is equivalent to 0.
time2
The second time for obtaining estimates for the bivariate distribution function.
...
Further arguments for summary.

See Also

p3state

Examples

Run this code
data(heart2)
res.p3state<-p3state(heart2, formula=~age+year)
summary(res.p3state,model="CMM",time1=20,time2=100)

Run the code above in your browser using DataLab