Get NONMEM data by variable type

Share:

Description

Retrieves data stored in a NONMEM object by category of data type, e.g. covariates, "etas", etc. The type mappings are defined in the configuration data, and may be changed with get/setNmVarDescription

Usage

1
nmDatabyVarType(obj, varTypes, returnMode=c("singleDF", "DFList"), ...)

Arguments

obj

Object of class NMRun or NMProblem

varTypes

Character vector of types to return. Allowed types are currently "Parameter", "Lab covariate", "Covariate" and "Eta"

returnMode

A string, either "singleDF" or "DFList". If "singleDF", all of the data is returned in a consolidated data.frame, otherwise as a list returned by type

...

Additional parameters: problemNum to select the problem if obj is of class NMRun, subProblemNum to select a set of subproblems for simulation problems

Value

A data.frame, or list, with the data

Author(s)

Mango Solutions

See Also

nmData, getVarDescription

Examples

1
2
3
4
5
6
## Not run: 
x <- importNm("TestData1.ctl", "TestData1.lst", path  = "testing/testdata/TestRun"))
x.covariates <- nmDatabyVarType(x, varTypes = "Covariate")
print(head(x.covariates))

## End(Not run)

Want to suggest features or report bugs for rdrr.io? Use the GitHub issue tracker.