covInfo: Make a covInfo S3 object

View source: R/nm.process.coveffects.r

covInfoR Documentation

Make a covInfo S3 object

Description

Constructs a covInfo (covariate information) object from a vector.

Usage

covInfo(
  cov.name,
  cov.vals,
  cov.cat = FALSE,
  cov.center = stats::median(cov.vals),
  cov.min = min(cov.vals),
  cov.max = max(cov.vals),
  cov.label = cov.name,
  cov.breaks = pretty(cov.vals)
)

Arguments

cov.name

The name of the covariate

cov.vals

A vector of values

cov.cat

A boolean indicating if the covariate is categorical

cov.center

The typical value of the covariate

cov.min

The minimum value of the covariate

cov.max

The maximum value of the covariate

cov.label

The printed name of the covariate (e.g. seen on plot axes)

cov.breaks

The points at which simulations and plots would be assessed

Value

A covInfo object

Note

This function is used with nm.process.coveffects

See Also

print.covInfo

Other coveffects: eval.eqs(), make.eqs(), print.covInfo()

Examples

eqs <- make.eqs(CL = THETA1*(1 + (GNDR == 0)*THETA7)*(AGE/33.72)^THETA6*exp(ETA1)
            ,V1 = THETA2*(1 + (GNDR == 0)*THETA9)*(AGE/33.72)^THETA8*exp(ETA2)
            )
eqs$label <- list(CL = "Clearance (L/h)", V1 = "Volume of Central Compartment (L)")


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