Learn R Programming

survHE (version 2.0.5)

make.transition.probs: make.transition.probs

Description

Computes the transition probabilities (to be passed to a Markov model) from the cumulative hazard curves obtained using fit.models, using the formula p(t)=1-exp(H(t-k)/H(t)), where k is the Markov model cycle length (or the difference across two consecutive times) and t is a generic time

Usage

make.transition.probs(fit, labs = NULL, ...)

Value

A tibble 'lambda' with an indicator for the treatment arm, the times at which the probabilities have been computed and nsim

columns each with a simulation of the transition probabilities for all the times specified by the user

Arguments

fit

an object obtained as output of the call to fit.models

labs

a vector with labels to identify the 'profiles' ie the combination of covariates that have been passed onto the model formula. If 'NULL' (default), then figures it out from the 'survHE' object.

...

additional arguments. Includes the standard inputs to the call to make.surv, so mod (the index of the possibly many models stored in the 'survHE' object), t (the vector of times over which to compute the survival curves), newdata (a list that defines the profile of covariates) and nsim (the number of simulations to use - default is nsim=1)

Author

Gianluca Baio

References

Something will go here

See Also

make.surv

Examples

Run this code
if (FALSE) {
# Something will go here
}

Run the code above in your browser using DataLab