Learn R Programming

packDAMipd (version 0.2.0)

transition_cost_util: Create the the values of cost and utility while transition

Description

Create the the values of cost and utility while transition

Usage

transition_cost_util(
  no_states,
  tmat_cost_util,
  list_values,
  name_states = NULL
)

Arguments

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

Value

value of the transition matrix

Details

Similar to transition matrix but for denoting one time change during transitions

Examples

Run this code
# NOT RUN {
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