Skip to contents

Takes the structure of data compile, price (for EPM), distance, gridvarying, interaction terms

Usage

create_model_input(
  project,
  x = NULL,
  mod.name = NULL,
  use.scalers = FALSE,
  scaler.func = NULL,
  expected.catch = NULL,
  exp.names = NULL
)

Arguments

project

Project name

x

Optional, Model input data

mod.name

Optional, name of model. Include if building model data for specific defined model.

use.scalers

Logical, should data be normalized? Defaults to FALSE. Rescaling factors are the mean of the numeric vector unless specified with scaler.func.

scaler.func

Function to calculate rescaling factors.

expected.catch

For conditional logit. Expected catch matrices to include

exp.names

The names of expected catch matrices to use in model. Specified in make_model_design.

Value

Returns a list of datacompile/choice matrix, dataCompile, distance, otherdat, expname, choice, choice.table, and mod.name