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