getOmegas: Retrieve OMEGA estimates, initial values of

Description Usage Arguments Value Note Author(s) Examples

View source: R/getOmegas.R

Description

A generic function that extracts omega estimates (and initial estimates and standard errors if specified) from a NONMEM object. For NONMEM 7 objects, shrinkage values will also be available

Usage

1
getOmegas(obj, what="final", subProblemNum=1, method=1, problemNum=1)

Arguments

obj

An object of class NMBasicModel, NMRun, NMSimModel, NMBasicModelNM7, NMSimModelNM7, or nmModel

what

Character vector of items to extract. One or more of "final", "stderrors" or "initial" (or "shrinkage" for NONMEM 7 basic models)

subProblemNum

[N,+] Numeric vector of simulation sub-problems to use. Only applies to simulation models

method

[N,+] Vector of methods to extract when dealing with NONMEM 7 problems

problemNum

[N,1] Number of problem to reference - applies to runs only

Value

For NONMEM 6 - either a list of matrices if multiple "what=" are used, or a single matrix otherwise For NONMEM 7 - The same as above for a single method. If multiple methods, a list of lists or a list of matrices

Note

Invalid what elements are simply ignored.

Author(s)

Mango Solutions

Examples

1
2
3
4
5
## Not run: 
x <- importNm("theoph.con", path = "examples/theoph")
getOmegas(x, what = c("initial", "final")) 

## End(Not run)

RNMImport documentation built on May 2, 2019, 5:21 p.m.