Make dummy variable cols and updated covarsVec
Usage
addCatCovariates(data, covarsVec, catcovarsVec)
Arguments
- data
data frame used in the analysis
- covarsVec
character vector of covariates that need to be
added
- catcovarsVec
character vector of categorical covariates that
need to be added
Value
return updated Data along with the updated covarsVec