Skip to contents

Convenience 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.

Usage

getCppModelParams(model)

Arguments

model

A C++ model object created with newCppModel()

Value

A named list containing all model parameter values:

  • Insitu - In situ parameter values

  • SurveillanceTest - Surveillance test parameter values

  • ClinicalTest - Clinical test parameter values

  • OutCol - Out-of-unit colonization parameter values

  • InCol - In-unit colonization parameter values

  • Abx - 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)
} # }