generateRNDpws: Generate some zero-centered part worths (utilities) for CBC...

View source: R/cbc-data-handling.R

generateRNDpwsR Documentation

Generate some zero-centered part worths (utilities) for CBC design

Description

Generate some zero-centered part worths (utilities) for CBC design

Usage

generateRNDpws(attrs, mu = 0, sdev = 1)

Arguments

attrs

A vector with the attribute/level design, as noted for generateMNLrandomTab#'

mu

The mean of the random utilities

sdev

Standard deviation of the utilities

Value

A vector of random values that sum to 0 for each subset of values that correspond to one attribute in a CBC attribute/level design.

See Also

[generateMNLrandomTab] to create a design matrix, [pickMNLwinningCards] to select the winning concepts from it, given some set of utilities (as from this function).


cnchapman/choicetools documentation built on May 28, 2023, 9:14 a.m.