Extract Model Parameters from C++ Model Object
getCppModelParams.RdConvenience function to extract all parameter values from a C++ model object
created with newCppModel(). This is essentially a wrapper around accessing
the model's parameter properties.
Arguments
- model
A C++ model object created with
newCppModel()
Value
A named list containing all model parameter values:
Insitu- In situ parameter valuesSurveillanceTest- Surveillance test parameter valuesClinicalTest- Clinical test parameter valuesOutCol- Out-of-unit colonization parameter valuesInCol- In-unit colonization parameter valuesAbx- Antibiotic parameter values (if applicable)
Examples
if (FALSE) { # \dontrun{
params <- LinearAbxModel()
model <- newCppModel(params)
# Extract all parameters
all_params <- getCppModelParams(model)
print(all_params$InCol)
} # }