Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

update

Update the model object


Description

After the model object is created, update various attributes.

Usage

## S4 method for signature 'mrgmod'
update(object, ..., merge = TRUE, open = FALSE, data = NULL, strict = TRUE)

## S4 method for signature 'omegalist'
update(object, y, ...)

## S4 method for signature 'sigmalist'
update(object, y, ...)

## S4 method for signature 'parameter_list'
update(object, .y, ...)

Arguments

object

a model object

...

named items to update

merge

logical indicating to merge (rather than replace) new and existing attributes

open

logical; used only when merge is TRUE and parameter list or initial conditions list is being updated; if FALSE, no new items will be added; if TRUE, the parameter list may expand.

data

a list of items to update; this list is combined with any items passed in via ...

strict

if TRUE, then an error will be generated if there is attempt to update a non-existent item

y

another object involved in update

.y

data to update

Details

Slots that can be updated:

  • verbose

  • debug

  • preclean

  • mindt

  • digits

  • atol - absolute solver tolerance; see solversettings

  • rtol - relative solver tolerance; see solversettings

  • ss_rtol - relative tolerance when finding steady state

  • ss_atol - absolute tolerance when finding steady state

  • ixpr - see IXPR in solversettings

  • mxhnil - see MXHNIL in solversettings

  • hmin - see HMIN in solversettings

  • hmax - see HMAX in solversettings

  • maxsteps - see MXSTEP in solversettings

  • start, end, delta, add

  • tscale

  • request

  • param

  • init

  • omega

  • sigma

  • outvars

Value

The updated model object is returned.

See Also

Examples

## Not run: 
 mod <- mrgsolve::house()

 mod <- update(mod, end=120, delta=4, param=list(CL=19.1))

## End(Not run)

mrgsolve

Simulate from ODE-Based Models

v0.11.1
GPL (>= 2)
Authors
Kyle T Baron [aut, cre] (<https://orcid.org/0000-0001-7252-5656>), Bill Gillespie [ctb], Charles Margossian [ctb], Devin Pastoor [ctb], Bill Denney [ctb] (<https://orcid.org/0000-0002-5759-428X>), Dilawar Singh [ctb], Felicien Le Louedec [ctb] (<https://orcid.org/0000-0003-3699-2729>), Timothy Waterhouse [ctb] (<https://orcid.org/0000-0002-0954-9660>), Metrum Research Group [cph]
Initial release

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.