| evaluateDoe | R Documentation |
Obtain a list of information about a given design, including the D-efficiency and whether or not the design is balanced.
evaluateDoe(doe)
doe |
A design of experiment data frame. Each row is an alternative, each column is an attribute. |
Returns a list of information about a given design, including the
D-efficiency and whether or not the design is balanced.
levels argument.
# 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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.