prep_newprediction: Match factor levels between two datasets

prep_newpredictionR 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)


echoice2 documentation built on Nov. 20, 2023, 9:06 a.m.