covload {nonmem2R}R Documentation

Load the covariance matrix from a nonmem .cov output file.

Description

Load the covariance matrix from a nonmem .cov output file. Either the covariance matrix of all THETA parameters (default) or the covariance matrix of all parameters, THETA, OMEGA and SIGMA.

For cov-files with multiple table results either only the last table result is loaded (last.table.only=TRUE, default) or all table results are loaded (last.table.only=FALSE). The result is then a named list of covariance matrix's, LastTable is the last table in the cov-files.

Usage

covload(
  model,
  use.model.path = TRUE,
  last.table.only = TRUE,
  theta.only = TRUE
)

Arguments

model

name of the cov file with or without the .cov extension. model may include full or relative path to the cov file. See examples.

use.model.path

Load file from a global defined model library (TRUE=default). If so will look for a global character vector named model.path

last.table.only

Include only the last table result for cov files with multiple table results

theta.only

return covariance matrix of theta's only (default)

Value

The covariance matrix or a named list of covariance matrix's

Examples

##### Load the .cov file "run001.cov"
# 1) Get path to the example file included in nonmem2R package
file1 <- system.file("extdata", "run001.cov", package = "nonmem2R")
# 2) Load the file using the covload function
covload(file1)

[Package nonmem2R version 0.2.5 Index]