get.diag.names: Find diagonal OMEGA names

View source: R/get.diag.names.r

get.diag.namesR Documentation

Find diagonal OMEGA names

Description

Retrieve which names in a vector of NONMEM parameter names are the diagonal ones. Thus, slect which ones are (1,1),, (2,2), etc... instead of (1,2), (3,4), etc... The function is used internally by functions post-processing NONMEM output

Usage

get.diag.names(names, sep = ",")

Arguments

names

character vector with OMEGA and SIGMA names

sep

separator - defaults to comma (e.g. OMEGA(1,1))

Value

named vector of logicals; TRUE for giagonal, FALSE for off-diagonal elements

Examples

covMatrix = get.covmat(path = getOption("qpExampleDir"), run = "example2")
get.diag.names(names = sub(" +", "", trimSpace(names(covMatrix[[1]]))))

qPharmetra/qpToolkit documentation built on May 24, 2023, 8:52 a.m.