createModel: Creating a response surface model.

Description Usage Arguments Details Value Note Author(s) References Examples

View source: R/utils.R

Description

This function uses a design of experiments, a response for the experiments within the design and the used parameters to create a response surface model

Usage

1
createModel(design, params, resp)

Arguments

design

A design of experiments (Box-Behnken-Design or Central-Composite-Design)

params

The parameters which were used.

resp

The responses achivied for the various experiments.

Details

This function uses a design of experiments, a response for the experiments within the design and the used parameters to create a response surface model

Value

A response surface model.

Note

getBbdParameter getCcdParameter typeCastParams

Author(s)

Gunnar Libiseller

References

Lenth, R. V. (2009). Response-Surface Methods in R , Using rsm. Journal of Statistical Software, 32(7), 1-17. Retrieved from http://www.jstatsoft.org/v32/i07

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
  params <- getDefaultXcmsSetStartingParams()
  type_params <- typeCastParams(params)
  design <- getBbdParameter(type_params$to_optimize)
  resp <- runif(nrow(design),1,3)
  
  model <- createModel(design, type_params$to_optimize, resp)
  dev.new()
  par(mfrow=c(3,2))
  contour(model, ~ x1*x2*x3*x4, image=TRUE)

  

IPO documentation built on Nov. 8, 2020, 8:31 p.m.