eval_assign_trans_prob: Attribute parameters to probabilities of transiiton matrix

Description Usage Arguments Value Examples

View source: R/model_functions.R

Description

Attribute parameters to probabilities of transiiton matrix

Usage

1
eval_assign_trans_prob(tm, parameter_values)

Arguments

tm

A transition matrix in the format from the package 'mstate'

parameter_values

name value pairs of parameter values in the probability matrix

Value

the transtion table with the probabilites

Examples

1
2
3
4
tmat <- rbind(c(1, 2), c(3, 4))
colnames(tmat) <- rownames(tmat) <- c("Healthy", "Dead")
tmat<-transition_matrix(2, tmat, list_prob = c("p1", "p2", "p3", "p4"))
tmat_assigned<-eval_assign_trans_prob(tmat,c(p1=0.2, p2=0.3, p3=0.4, p4=0.5))

sheejamk/MarkovModel documentation built on Jan. 23, 2020, 2:44 a.m.