Convert to an rsm.design

DESCRIPTION:

Converts each column of a data.frame to an rsm.factor, resulting in an rsm.design object, an object suitable for fitting a response surface.

USAGE:

as.rsm.design(x, rsm.factors=seq(length(x)), logx = F) 

REQUIRED ARGUMENTS:

x
a data.frame, or something that can be converted to a data.frame by as.data.frame.

OPTIONAL ARGUMENTS:

rsm.factors
a subscripting expression for the data.frame x that designates the vbariables that are to be converted to rsm.factors. Other variables are returned unchanged.
logx
single logical value or vector of logical values for whether each rsm.factor is evenly spaced on the log scale.

VALUE:

an rsm.design object.

DETAILS:

The functions rsm.lm and plot.rsm.design rely on the data having attributes of the class rsm.design. When the experiment is read from an external file, via read.table for instance, a user can use as.rsm.design to interface easily to the response surface fitting functions of the S+DOX module.

If you wish to convert a fac.design object to an rsm.design, see the function convert.to.rsm.

SEE ALSO:

, , , .

EXAMPLES:

my.df <- read.table("rsm.dat") 
my.rsmdf <- as.rsm.design(my.df, c("temp", "pressure"))