Skip to contents

Generate a population based on a Nonmem model

Usage

simPopEtas(file, N, seed, pars, file.phi, as.fun, file.mod, ...)

Arguments

file

Passed to `NMdata::NMreadExt()`. Path to ext file. By default, `NMreadExt()` uses a`auto.ext=TRUE` which means that the file name extension is replaced by `.ext`. If your ext file name extension is not `.ext`, add `auto.ext=FALSE` (see ...).

N

Number of subjects to generate

seed

Optional seed. Will be passed to `set.seed`. Same thing as running `set.seed` just before calling `simPopEtas()`.

pars

A long-format parameter table containing par.type and i columns. If this is supplied, the parameter values will not be read from an ext file, and file has no effect. If an ext file is available, it is most likely better to use the file argument.

file.phi

An optional phi file to write the generated subjects to.

as.fun

The default is to return data as a data.frame. Pass a function (say `tibble::as_tibble`) in as.fun to convert to something else. If data.tables are wanted, use as.fun="data.table". The default can be configured using NMdataConf.

file.mod

Deprecated. Use file instead.

...

Additional arguments passed to NMdata::NMreadExt().

Value

A data.frame