rsm.design
data.frame
to an
rsm.factor
, resulting
in an
rsm.design
object, an object suitable for fitting a response
surface.
as.rsm.design(x, rsm.factors=seq(length(x)), logx = F)
data.frame
, or something that can be converted to a
data.frame
by
as.data.frame
.
x
that designates the
vbariables that are to be converted to
rsm.factors
. Other variables
are returned unchanged.
rsm.factor
is evenly spaced on the log scale.
rsm.design
object.
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
.
my.df <- read.table("rsm.dat") my.rsmdf <- as.rsm.design(my.df, c("temp", "pressure"))