Learn R Programming

r6qualitytools (version 1.0.1)

steepAscent: steepAscent: Steepest Ascent

Description

steepAscent is a method to calculate the steepest ascent for a facDesign.c object.

Usage

steepAscent(factors, response, size = 0.2, steps = 5, data)

Value

steepAscent returns an object of class steepAscent.c.

Arguments

factors

List containing vector of factor names (coded) to be included in calculation, first factor is the reference factor.

response

A character of response given in data.

size

Numeric integer value giving the step size in coded units for the first factor given in factors. By default size is set to 0.2.

steps

Numeric integer value giving the number of steps. By default step is set to `5`.

data

An object of class facDesign.c.

See Also

optimum, desirability

Examples

Run this code
# Example 1
fdo = facDesign(k = 2, centerCube = 5)
fdo$lows(c(170, 150))
fdo$highs(c(230, 250))
fdo$names(c("temperature", "time"))
fdo$unit(c("C", "minutes"))
yield = c(32.79, 24.07, 48.94, 52.49, 38.89, 48.29, 29.68, 46.5, 44.15)
fdo$.response(yield)
fdo$summary()

sao = steepAscent(factors = c("B", "A"), response = "yield", size = 1,
                  data = fdo)

Run the code above in your browser using DataLab