Creates set of covariate effects
covariateModel.Rd
Use to create set of covariate effects to be checked during Stepwise or Shotgun covariate search
Examples
# \donttest{
# Define the model
model <- pkmodel(
numCompartments = 2,
data = pkData,
ID = "Subject",
Time = "Act_Time",
A1 = "Amount",
CObs = "Conc"
)
# 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)
#> An object of class "CovariateEffectModel"
#> Slot "numCovariates":
#> [1] 4
#>
#> Slot "covariateList":
#> [1] "V-BodyWeight,Cl-BodyWeight,V2-Gender,Cl2-Gender"
#>
#> Slot "scenarioNames":
#> [1] "S,S,S,S"
#>
#> Slot "isDefault":
#> [1] "1,1,1,1"
#>
#> Slot "degreesOfFreedom":
#> [1] "1,1,1,1"
#>
# }