prep_newprediction {echoice2}R Documentation

Match factor levels between two datasets

Description

Makes sure the factor levels in data_new are aligned with data_old This is helpful for demand simulations.

Usage

prep_newprediction(data_new, data_old)

Arguments

data_new

New long-format choice data

data_old

Old long-format choice data

Value

long-format choice data

Examples

data(icecream)
prep_newprediction(icecream, icecream)


[Package echoice2 version 0.2.4 Index]