evaluateDoe: Evaluate a design of experiment

View source: R/makeDoe.R

evaluateDoeR Documentation

Evaluate a design of experiment

Description

Obtain a list of information about a given design, including the D-efficiency and whether or not the design is balanced.

Usage

evaluateDoe(doe)

Arguments

doe

A design of experiment data frame. Each row is an alternative, each column is an attribute.

Value

Returns a list of information about a given design, including the D-efficiency and whether or not the design is balanced. levels argument.

Examples

# Define the attributes and levels
levels <- list(
  price     = seq(1, 4, 0.5), # $ per pound
  type      = c('Fuji', 'Gala', 'Honeycrisp', 'Pink Lady', 'Red Delicious'),
  freshness = c('Excellent', 'Average', 'Poor')
)

# Make a fraction-factorial design of experiment based on D-efficiency
doe <- makeDoe(levels, type = "D", nTrials = 70)

# Print the design efficiency and whether it is balanced:
evaluateDoe(doe)

jhelvy/conjointTools documentation built on March 30, 2022, 11:37 a.m.