mnl_create_random_beta: Creation of a random parameter vector using the MNL model

Description Usage Arguments Value Examples

View source: R/mnl_model_functions.R

Description

Creates a random parameter vector with the appropriate dimensions as in Bayesian D-optimal choice designs for mixtures by Ruseckaite, Goos & Fok (2017).

Usage

1

Arguments

q

integer specifying the number of mixture ingredients

order

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

seed

integer used for reproducibility

Value

Returns a list in which the first element of the list is a numerical vector with the parameters and the second element is a matrix with the indices as in Bayesian D-optimal choice designs for mixtures by Ruseckaite, Goos & Fok (2017).

Examples

1
mnl_create_random_beta(q = 3, order = 3, seed = 3)

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