steepAscent: steepAscent: Steepest Ascent

View source: R/3.3_Factorial_designs_Functions.R

steepAscentR Documentation

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)

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.

Value

steepAscent returns an object of class steepAscent.c.

See Also

optimum, desirability

Examples

# 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)

r6qualitytools documentation built on Oct. 4, 2024, 1:09 a.m.