Generate a population based on a Nonmem model
Arguments
- file.mod
Path to input control stream
- 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()`.
- 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.