powered by
Makes sure the factor levels in data_new are aligned with data_old This is helpful for demand simulations.
data_new
data_old
prep_newprediction(data_new, data_old)
long-format choice data
New long-format choice data
Old long-format choice data
data(icecream) prep_newprediction(icecream, icecream)
Run the code above in your browser using DataLab