apollo_classAlloc: Calculates Multinomial Logit probabilities

Description Usage Arguments Value

View source: R/apollo_classAlloc.R

Description

Calculates probabilities of a Multinomial Logit model.

Usage

1
apollo_classAlloc(classAlloc_settings)

Arguments

classAlloc_settings

List of inputs of the MNL model. It should contain the following.

  • V: Named list of deterministic utilities . Utilities of the alternatives. Names of elements must match those in avail, if provided.

  • avail: Named list of numeric vectors or scalars. Availabilities of alternatives, one element per alternative. Names of elements must match those in V. Values can be 0 or 1.

  • rows: Boolean vector. Consideration of rows in the likelihood calculation, FALSE to exclude. Length equal to the number of observations (nObs). Default is "all", equivalent to rep(TRUE, nObs).

  • componentName: Character. Name given to model component.

functionality

Character. Can take different values depending on desired output.

  • "estimate": Used for model estimation.

  • "prediction": Used for model predictions.

  • "validate": Used for validating input.

  • "zero_LL": Used for calculating null likelihood.

  • "conditionals": Used for calculating conditionals.

  • "output": Used for preparing output after model estimation.

  • "raw": Used for debugging.

Value

The returned object depends on the value of argument functionality as follows.


byu-transpolab/apollo-byu documentation built on Dec. 19, 2021, 12:49 p.m.