Encoding Data

Functions for encoding data prior to model estimation.

recodeData()

Returns a list of the design matrix X and updated pars and randPars to include any dummy-coded categorical or interaction variables.

Estimating Models

Functions for estimating multinomial logit models with preference space and WTP space utility parameterizations.

logitr()

The main function for estimating logit models

Viewing Results

Functions for viewing the results of estimated models.

logLik(<logitr>) terms(<logitr>) coef(<logitr>) coef(<summary.logitr>) summary(<logitr>) print(<logitr>) print(<summary.logitr>) se(<logitr>) vcov(<logitr>) print(<logitr_wtp>)

Methods for logitr objects

statusCodes()

View a description the nloptr status codes

Computing and Comparing WTP

Functions for computing and comparing WTP from estimated models.

wtp()

Get WTP from a preference space model

wtpCompare()

Compare WTP from preference and WTP space models

Predicting Choices & Probabilities

Functions for predicting choices and choice probabilities for a set of alternatives.

predictChoices()

Predict choices

predictProbs()

Predict expected choice probabilities

Example Data Sets

Descriptions of data included with this package

yogurt

Choice observations of yogurt purchases by 100 households

cars_us

Stated car choice observations by US car buyers

cars_china

Stated car choice observations by Chinese car buyers