plot_model: E1. Plot a Markov model

Description Usage Arguments Value Examples

View source: R/1_model_functions.R

Description

E1. Plot a Markov model

Usage

1
plot_model(markov)

Arguments

markov

markov_model object

Value

plots

Examples

1
2
3
4
5
6
7
8
9
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, 0, TRUE)
health_states <- combine_state(a, b)
this.strategy <- strategy(tm, health_states, "intervention")
this_markov <- markov_model(this.strategy, 10, c(1, 0), c(0, 0))
p <- plot_model(this_markov)

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