Skip to contents

Forward covariate search

Usage

forwardSearch(
  varsVec,
  covarsVec,
  catvarsVec = NULL,
  fit,
  pVal = 0.05,
  outputDir,
  restart = FALSE
)

Arguments

varsVec

character vector of variables that need to be added

covarsVec

character vector of covariates that need to be added

catvarsVec

character vector of categorical covariates that need to be added

fit

an nlmixr2 'fit' object

pVal

p-value that should be used for selecting covariates in the forward search

outputDir

the name of the output directory that stores the covariate search result

restart

a boolean that controls if the search should be restarted; default is FALSE

Value

returns the updated 'fit' object at the end of the forward search and a table of information for all the covariates tested

Author

Vipul Mann, Matthew Fidler, Vishal Sarsani