getThetas: A generic function that extracts theta estimates (and initial...

Description Usage Arguments Value Note Author(s) Examples

Description

A generic function that extracts theta estimates (and initial estimates and standard errors if specified) from a NONMEM object.

Usage

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

Vector of methods to extract when dealing with NONMEM 7 problems

problemNum

Number of problem to use - applies to NMRun only

Value

A matrix of named rows for final estimates, initial estimates, standard errors etc. as applicable, or a list of matrices if multiple methods are chosen in NONMEM 7

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

## End(Not run)

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