powered by
Create the the values of cost and utility while transition
transition_cost_util( no_states, tmat_cost_util, list_values, name_states = NULL )
value of the transition matrix
number of the health states
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 of probabilities as in the order of transitions (row wise)
names of the health states
Similar to transition matrix but for denoting one time change during transitions
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))
Run the code above in your browser using DataLab