Learn R Programming

Certara.RsNLME (version 3.1.0.1)

covariateModel: Creates set of covariate effects

Description

Use to create set of covariate effects to be checked during Stepwise or Shotgun covariate search

Usage

covariateModel(model)

Value

CovariateEffectModel class object

Arguments

model

Model object with covariates and covariate effects specified

Examples

Run this code
if (FALSE) {
# Define the model
model <- pkmodel(
  numCompartments = 2,
  data = pkData,
  ID = "Subject",
  Time = "Act_Time",
  A1 = "Amount",
  CObs = "Conc",
  workingDir = tempdir()
)

# Add Gender covariate of type categorical
model <- addCovariate(model,
  covariate = "Gender",
  type = "Categorical",
  effect = c("V2", "Cl2"),
  levels = c(0, 1),
  labels = c("Female", "Male")
)

# Add Bodyweight covariate of type continuous
model <- addCovariate(model,
  covariate = "BodyWeight",
  type = "Continuous",
  direction = "Backward",
  center = "Mean",
  effect = c("V", "Cl")
)
covariateModel(model)
}

Run the code above in your browser using DataLab