Backward covariate search
backwardSearch(
covInfo,
fitorig,
fitupdated,
pVal = 0.01,
reFitCovars = FALSE,
outputDir,
restart = FALSE
)
a list containing information about each variable-covariate pair
the original 'fit' object before forward search
the updatef 'fit' object, if any, after the forward search
p-value that should be used for selecting covariates in the forward search
if the covariates should be added before performing backward search - useful for directly performing backward search without forward search; default is FALSE
the name of the output directory that stores the covariate search result
a boolean that controls if the search should be restarted; default is FALSE
returns the updated 'fit' object at the end of the backward search and a table of information for all the covariates tested