Learn R Programming

pmxTools (version 1.2.1)

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

Description

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

Usage

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.

See Also

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

Examples

Run this code
# NOT RUN {
 omDist <- sample_omega("run315", 5000, seed=740727)
# }
# NOT RUN {
# }

Run the code above in your browser using DataLab