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

Description Usage Arguments Details Value Examples

View source: R/1_model_functions.R

Description

Create the the values of cost and utility while transition

Usage

1
2
3
4
5
6
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

Details

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

Value

value of the transition matrix

Examples

1
2
3
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))

packDAMipd documentation built on March 3, 2021, 5:07 p.m.