sample_uncert: Sample from the multivariate normal distribution to generate...

View source: R/sample_uncert.R

sample_uncertR Documentation

Sample from the multivariate normal distribution to generate new sets of parameters from NONMEM output.

Description

Sample from the multivariate normal distribution to generate new sets of parameters from NONMEM output.

Usage

sample_uncert(nmRun, n, seed)

Arguments

nmRun

Root filename for the NONMEM run (e.g. "run315.xml").

n

Number of samples required.

seed

Random seed.

Value

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.

Author(s)

Justin Wilkins, justin.wilkins@occams.com

See Also

NONMEM (https://www.iconplc.com/innovation/nonmem/)

Examples

## Not run: 
 nmMatrix <- sample_uncert("run315.xml", 5000, seed=740727)

## End(Not run)


pmxTools documentation built on March 7, 2023, 7:58 p.m.