simPopEtas {NMsim} | R Documentation |
Generate a population based on a Nonmem model
Description
Generate a population based on a Nonmem model
Usage
simPopEtas(file.mod, N, seed, file.phi, as.fun)
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. |
[Package NMsim version 0.1.2 Index]