Make dummy variable cols and updated covarsVec
addCatCovariates(data, covarsVec, catcovarsVec)
data
: data frame used in the analysiscovarsVec
: character vector of covariates that need to be addedcatcovarsVec
: character vector of categorical covariates that need to be addedreturn updated Data along with the updated covarsVec
Vishal Sarsani
Useful links