simPopEtas function

Generate a population based on a Nonmem model

Generate a population based on a Nonmem model

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

Arguments

  • file: Passed to NMdata::NMreadExt(). Path to ext file. By default, NMreadExt() uses aauto.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.R: 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.
  • seed: Deprecated. Use seed.R instead.
  • ...: Additional arguments passed to NMdata::NMreadExt().

Returns

A data.frame

  • Maintainer: Philip Delff
  • License: MIT + file LICENSE
  • Last published: 2025-03-13