View source: R/sample_uncert.R
sample_uncert | R Documentation |
Sample from the multivariate normal distribution to generate new sets of parameters from NONMEM output.
sample_uncert(nmRun, n, seed)
nmRun |
Root filename for the NONMEM run (e.g. "run315.xml"). |
n |
Number of samples required. |
seed |
Random seed. |
A data frame containing n
samples from the multivariate normal distribution, using
NONMEM typical parameter estimates the NONMEM variance-covariance matrix (from the *.cov file). This
provides n
sets of parameter estimates sampled from the uncertainty distribution, suitable
for simulation under model uncertainty.
Justin Wilkins, justin.wilkins@occams.com
NONMEM (https://www.iconplc.com/innovation/nonmem/)
## Not run:
nmMatrix <- sample_uncert("run315.xml", 5000, seed=740727)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.