Stepwise covariate search

  1. Copy the model object into a new object and accept final parameter estimates from fitting run as initial estimates.

  2.   covariateModel <- copyModel (model , acceptAllEffects = TRUE
                     , modelName = paste0 ( ModelName , " _CovariateSearch "))

  3. Add covariates to base model.

  4.   covariateModel <- covariateModel %>%
         addCovariate ( covariate = c( Sex = " Gender "), effect = "Cl"
                   , type = " Categorical "
                   , levels = c(0, 1) , labels = c(" female ", " male ")) %>%
         addCovariate ( covariate = " Age ", effect = "V") %>%
         addCovariate ( covariate = c(BW = " BodyWeight ")
                   , effect = c("V", "Cl")
                   , center = " Value ", centerValue = 70)

  5. Run Stepwise Covariate Search.

  6.   covariateJob <- stepwiseSearch ( covariateModel )

  7. Load and view the model selected by stepwise covariate search.

  stepwiseLines <- readLines ( paste0 (
     covariateModel@modelInfo@workingDir ,"/ Stepwise . txt "))
  print ( stepwiseLines [ grep (" Scenario to use = ", stepwiseLines )])


Last modified date:12/17/20
Certara USA, Inc.
Legal Notice | Contact Certara
© 2020 Certara USA, Inc. All rights reserved.