strategy: Definition of strategy - or arm

Description Usage Arguments Details Value Examples

View source: R/1_model_functions.R

Description

Definition of strategy - or arm

Usage

1
strategy(trans_mat, states, name, trans_cost = NULL, trans_util = NULL)

Arguments

trans_mat

transition matrix

states

health states

name

name of the strategy

trans_cost

values of costs if these are attached to transitions

trans_util

values of utility if these are attached to transitions

Details

Defining strategy keeping all transition matrix, states and names together to use in defining Markov model

Value

object strategy

Examples

1
2
3
4
5
6
7
tmat <- rbind(c(1, 2), c(3, 4))
colnames(tmat) <- rownames(tmat) <- c("Healthy", "Dead")
tm <- populate_transition_matrix(2, tmat, c(0.5, 0.5, 0, 1))
a <- health_state("Healthy", 1, 1, 0, FALSE)
b <- health_state("Dead", 1, 0.5, 0, FALSE)
states <- combine_state(a, b)
strategy(tm, states, "intervention")

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