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