createModel: Creating a response surface model.

View source: R/utils.R

createModelR Documentation

Creating a response surface model.

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

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


  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)

  


glibiseller/IPO documentation built on Dec. 4, 2022, 7:09 a.m.