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

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)
#>   nTrials     d balanced
#> 1      70 0.956    FALSE

# Print the design efficiency and whether it is balanced:
evaluateDoe(doe)
#> $d_eff
#> [1] 0.956
#> 
#> $balanced
#> [1] FALSE
#>