update_params: Update Model Parameters for Stochastic Network Models
Description
Updates epidemic model parameters originally set with
param.net and adds new parameters.
Usage
update_params(param, new.param.list)
Value
An updated list object of class param.net, which can be passed to the
EpiModel function netsim.
Arguments
param
Object of class param.net, output from function of same
name.
new.param.list
Named list of new parameters to add to original
parameters.
Details
This function can update any original parameters specified with
param.net and add new parameters. This function would be used
if the inputs to param.net were a long list of fixed model
parameters that needed supplemental replacements or additions for particular
model runs (e.g., changing an intervention efficacy parameter but leaving all
other parameters fixed).
The new.param.list object should be a named list object containing
named parameters matching those already in x (in which case those
original parameter values will be replaced) or not matching (in which case
new parameters will be added to param).