Learn R Programming

babsim.hospital (version 11.5.14)

updateMatrixP: updateMatrixP

Description

Updates the probability matrix

Usage

updateMatrixP(P = getMatrixP(), u)

Arguments

P

matrix P. Default getMatrixP

u

list of factors used for the update

Value

a matrix with updated transition probabilities

Examples

Run this code
# NOT RUN {
u <- list(k=2)
R <- updateMatrixP(u=u)

# }

Run the code above in your browser using DataLab