View source: R/1_model_functions.R
transition_cost_util | R Documentation |
Create the the values of cost and utility while transition
transition_cost_util(
no_states,
tmat_cost_util,
list_values,
name_states = NULL
)
no_states |
number of the health states |
tmat_cost_util |
A transition matrix for the cost/utility values in the format from the package 'mstate' use NA to indicate if the value is zero |
list_values |
list of probabilities as in the order of transitions (row wise) |
name_states |
names of the health states |
Similar to transition matrix but for denoting one time change during transitions
value of the transition matrix
tmat_cost <- rbind(c(NA, 1), c(NA, NA))
colnames(tmat_cost) <- rownames(tmat_cost) <- c("Healthy", "Dead")
transition_cost_util(2, tmat_cost, list_values = c(500))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.