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

wf_sweep

Simulate a sequence of parameters


Description

This function is experimental and may change or go away at any time without notice.

Usage

wf_sweep(mod, ..., n = 10, cv = 30, nsd = 2)

Arguments

mod

a model object

...

unquoted parameter names

n

number of values to simulate

cv

coefficient of variation; used to determine the minimum and maximum values for the sweep

nsd

the number of standard deviations over which to sweep

Value

A mrgsims object with a character columns named .name indicating the parameter name and .value indicating the sweep value.

Examples

mod <- mrgsolve::house() %>% zero_re()

mod %>% 
  ev(amt = 100) %>% 
  wf_sweep(CL, VC) %>% 
  plot(CP~time|.name)

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.