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
make.transition.probs(fit, labs = NULL, ...)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
an object obtained as output of the call to fit.models
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)
Gianluca Baio
Something will go here
make.surv
if (FALSE) {
# Something will go here
}
Run the code above in your browser using DataLab