make.transition.probs: make.transition.probs

View source: R/make.transition.probs.R

make.transition.probsR Documentation

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, ...)

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)

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

Note

Something will go here

Author(s)

Gianluca Baio

References

Something will go here

See Also

make.surv

Examples

## Not run: 
# Something will go here

## End(Not run)


survHE documentation built on Oct. 4, 2024, 5:10 p.m.