Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

summary.etm

Summary methods for an 'etm' object


Description

Summary method for objects of class etm

Usage

## S3 method for class 'etm'
summary(object, tr.choice,
        ci.fun = "linear", level = 0.95, times, ...)
## S3 method for class 'summary.etm'
print(x, ...)

Arguments

object

An object of class etm.

tr.choice

Character vector of the form 'c("from to","from to")' specifying which transitions should be summarized. Default to all the transition probabilities

ci.fun

A character vector specifying the transformation to be applied to the pointwise confidence intervals. It could be different for each transition probability, though if length(ci.fun) != number of transitions, only ci.fun[1] will be used. The function displays the transition probabilities in the following order: first the direct transitions in alphabetical order, e.g., 0 to 1, 0 to 2, 1 to 2, ..., then the state occupation probabilities in alphabetical order, e.g., 0 to 0, 1 to 1, ... The possible transformations are "linear", "log", "log-log" and "cloglog". Default is "linear".

level

Level of the two-sided confidence intervals. Default is 0.95.

x

A summary.cpf object

times

Time points for which estimates should be returned. Default to all transition times.

...

Further arguments

Value

A list of data.frames giving the transition probability and stage occupation probability estimates. List items are named after the possible transition.

P

Transition probability estimates

var

Variance estimates

lower

Lower confidence limit

upper

Upper confidence limit

time

Transition times

n.risk

Number of individuals at risk of experiencing a transition just before time t

n.event

Number of events at time t

Author(s)

See Also


etm

Empirical Transition Matrix

v1.1.1
MIT + file LICENSE
Authors
Mark Clements [aut, cre], Arthur Allignol [aut]
Initial release

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.