addCatCovariates function

Make dummy variable cols and updated covarsVec

Make dummy variable cols and updated covarsVec

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

Returns

return updated Data along with the updated covarsVec

Author(s)

Vishal Sarsani