summary.pstp: Summarizing fits of "pstp" class

Description Usage Arguments Value Author(s) Examples

View source: R/summary.pstp.R

Description

Returns a a data.frame or list containing the estimates of the probabilities.

Usage

1
2
## S3 method for class 'pstp'
summary(object, state_ini = 0, times = NULL, ...)

Arguments

object

A fitted pstp object as produced by presmTP.

state_ini

Initial state of the transition. Defaults to state_ini=0.

times

Vector of times; the returned data frame will contain 1 row for each time.

...

For future methods.

Value

A data frame or a list containing the estimates of the probability.

Author(s)

Gustavo Soutinho, Luis Meira-Machado, Pedro Oliveira.

Examples

1
2
res<- presmTP(data = colonIDM, s = 365, method = "uns")
summary(res, state_ini=1, times=365*1:5)

presmTP documentation built on Nov. 1, 2019, 7:45 p.m.