prep_newprediction {echoice2} | R Documentation |
Makes sure the factor levels in data_new
are aligned with data_old
This is helpful for demand simulations.
prep_newprediction(data_new, data_old)
data_new |
New long-format choice data |
data_old |
Old long-format choice data |
long-format choice data
data(icecream)
prep_newprediction(icecream, icecream)