mnl_get_opt_crit_value: Computes optimality criterion value using the MNL model

Description Usage Arguments Value

View source: R/mnl_model_functions.R

Description

Computes optimality criterion value for a design array X and beta parameter.

Usage

1
mnl_get_opt_crit_value(X, beta, order, opt_crit = "D", transform_beta = T)

Arguments

X

3 dimensional array of size (q, J, S) where:

  • q is the number of ingredient proportions,

  • J is the number of alternatives within a choice set,

  • S is the number of choice sets.

beta

numeric vector containing the parameters or numeric matrix containing draws of the prior distribution of the parameters.

order

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

opt_crit

optimality criterion: 0 or "D" is D-optimality; while 1 or "I" is I-optimality.

transform_beta

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

Value

Returns the value of the optimality criterion for this particular design and this beta vector


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