shift_matrix<- | R Documentation |
SimInf_model
objectUtility function to set events@N
in a SimInf_model
object, see SimInf_events
shift_matrix(model) <- value ## S4 replacement method for signature 'SimInf_model' shift_matrix(model) <- value
model |
The |
value |
A matrix. |
SimInf_model
object
## Create an SIR model model <- SIR(u0 = data.frame(S = 99, I = 1, R = 0), tspan = 1:5, beta = 0.16, gamma = 0.077) ## Set the shift matrix shift_matrix(model) <- matrix(c(2, 1, 0), nrow = 3) ## Extract the shift matrix from the model shift_matrix(model)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.