sample_omega: Sample from the multivariate normal distribution using the...

Description Usage Arguments Value Author(s) See Also Examples

View source: R/sample_omega.R

Description

Sample from the multivariate normal distribution using the OMEGA variance-covariance matrix to generate new sets of simulated ETAs from NONMEM output.

Usage

1
sample_omega(nmRun, n, seed)

Arguments

nmRun

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

n

Number of samples required.

seed

Random seed.

Value

A data frame containing n samples from the multivariate normal distribution, using the estimated NONMEM OMEGA variance-covariance matrix. This provides n sets of ETA estimates suitable for simulation of new patients.

Author(s)

Justin Wilkins, justin.wilkins@occams.com

See Also

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

Examples

1
2
3
4
## Not run: 
 omDist <- sample_omega("run315", 5000, seed=740727)

## End(Not run)

pmxTools documentation built on Aug. 27, 2020, 1:10 a.m.