getSigmas: A generic function that extracts sigma estimates (and initial...

Description Usage Arguments Value Note Author(s) Examples

Description

A generic function that extracts sigma estimates (and initial estimates and standard errors if specified) from a NONMEM object. Shrinkage values may also be retrieved for NONMEM 7 objects.

Usage

1
getSigmas(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

Numeric vector of simulation sub-problems to use. Only applies to simulation models

method

Numeric vector of methods to extract when dealing with NONMEM 7 problems

problemNum

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")
getSigmas(x, what = c("initial", "final")) 

## End(Not run)

MangoTheCat/RNMImport documentation built on May 8, 2019, 4:36 p.m.