This function handles choice-specific covariates in multinomial choice models. See the example for an example of useage.
choicevar(var, varname, choicelevel)
The is the name of the variable in the dataframe.
The name of the new variable to be created.
The level of y
that the variable corresponds to.
The new variable used by the MCMCmnl()
function.