mnl_get_Ps: Compute choice probabilities of a specific choice set using...

Description Usage Arguments Value

View source: R/mnl_model_functions.R

Description

Compute choice probabilities of a specific choice set using the MNL model.

Usage

1
mnl_get_Ps(X, beta, s, order = 3, transform_beta = T)

Arguments

X

3-dimensional design cube/array of size (q, J, S).

beta

Parameter vector

s

integer corresponding to a choice set in 1 to S.

order

integer corresponding to a Scheffé model order (1, 2, 3).

transform_beta

boolean parameter. Should the beta vector/matrix be transformed by subtracting the q-th element?

Value

J-dimensional numerical vector.


mariobecerra/opdesmixr documentation built on Aug. 13, 2021, 9:44 p.m.