mnl_get_fds_simulations: Perform Monte Carlo simulations for FDS plots.

Description Usage Arguments Value

View source: R/mnl_model_functions.R

Description

This function creates a dataframe/tibble with Monte Carlo simulations for Fraction of Design Space plots.

Usage

1
2
3
4
5
6
7
8
mnl_get_fds_simulations(
  design_array,
  beta,
  order,
  n_points_per_alternative = 500,
  transform_beta = F,
  verbose = 0
)

Arguments

design_array

3-dimensional design array.

beta

Matrix with Halton draws of the prior distribution

order

integer corresponding to Scheffé model of order 1, 2, or 3.

n_points_per_alternative

Number of points to approximate the prediction variance.

transform_beta

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

verbose

Level of verbosity

Value

Tibble of size J*n_points_per_alternative where J is the number of alternatives per choice set, i.e., the second element in dim(design_array).


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