Sample model parameters using the `simpar` package
sampleParsSimpar(file.mod, nsim, format = "ext", seed.R, as.fun)
A table with sampled model parameters
Path to model control stream. Will be used for both `NMreadExt()` and `NMreadCov()`, and extension will automatically be replaced by `.ext` and `.cov`.
Number of sets of parameter values to generate. Passed to `simpar`.
"ext" (default) or "wide".
seed value passed to set.seed().
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.
Sanaya Shroff, Philip Delff