Description Usage Arguments Value Examples
View source: R/model_functions.R
Attribute parameters to probabilities of transiiton matrix
1 | eval_assign_trans_prob(tm, parameter_values)
|
tm |
A transition matrix in the format from the package 'mstate' |
parameter_values |
name value pairs of parameter values in the probability matrix |
the transtion table with the probabilites
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))
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.