Create dummy variables from previously defined categorical variable
decideFunc to decide the type of the variable and the function to be used
getFunc to select the function to be used to create the simulated variable and return the output