View source: R/3.3_Factorial_designs_Functions.R
steepAscent | R Documentation |
steepAscent
is a method to calculate the steepest ascent for a facDesign.c
object.
steepAscent(factors, response, size = 0.2, steps = 5, data)
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 |
steps |
Numeric integer value giving the number of steps. By default step is set to '5'. |
data |
An object of class |
steepAscent
returns an object of class steepAscent.c
.
optimum
, desirability
# 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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.