Learn R Programming

mrgsolve (version 1.5.1)

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)

Value

A mrgsims object with a character columns named .name

indicating the parameter name and .value indicating the sweep value.

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

Examples

Run this code
mod <- mrgsolve::house() %>% zero_re()

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

Run the code above in your browser using DataLab