The facDesign.c
class is used to represent factorial designs, including their factors, responses, blocks, and design matrices. This class supports various experimental designs and allows for the storage and manipulation of data related to the design and analysis of factorial experiments.
name
Character string representing the name of the factorial design.
factors
List of factors involved in the factorial design, including their levels and settings.
cube
Data frame containing the design matrix for the cube portion of the factorial design.
star
Data frame containing the design matrix for the star portion of the factorial design.
centerCube
Data frame containing the center points within the cube portion of the factorial design.
centerStar
Data frame containing the center points within the star portion of the factorial design.
generator
List of generators used to create the fractional factorial design.
response
Data frame containing the responses or outcomes measured in the design.
block
Data frame specifying the block structures if the design is blocked.
blockGen
Data frame specifying the block generators for the design.
runOrder
Data frame specifying the order in which runs are performed.
standardOrder
Data frame specifying the standard order of the runs.
desireVal
List of desired values or targets for the response variables.
desirability
List of desirability scores or metrics based on the desired values.
fits
Data frame containing the fitted model parameters and diagnostics for the responses in the design.
print()
Prints a formatted representation of the factorial design object, including design matrices and responses.
facDesign.c$print()
.clear()
Clears the factorial design object.
facDesign.c$.clear()
names()
Get or set the names of the factors in the factorial design.
facDesign.c$names(value)
value
Character vector with new names for the factors. If missing, retrieves the current names.
as.data.frame()
Converts the factorial design object to a data frame.
facDesign.c$as.data.frame()
i
Row index.
j
Column index.
lows()
Get or set the lower bounds of the factors in the factorial design.
facDesign.c$lows(value)
value
Numeric vector with new lower bounds. If missing, retrieves the current lower bounds.
highs()
Get or set the upper bounds of the factors in the factorial design.
facDesign.c$highs(value)
value
Numeric vector with new upper bounds. If missing, retrieves the current upper bounds.
.nfp()
Prints a summary of the factors attributes including their low, high, name, unit, and type.
facDesign.c$.nfp()
identity()
Returns the factorial design object itself, used to verify or return the object.
facDesign.c$identity()
.response()
Get or set the response data in the factorial design object.
facDesign.c$.response(value)
value
Data frame or numeric vector with new responses. If missing, retrieves the current responses.
effectPlot()
Plots the effects of factors on the response variables.
facDesign.c$effectPlot(
factors,
fun = mean,
response = NULL,
lty,
xlab,
ylab,
main,
ylim
)
factors
Factors to be plotted.
fun
Function applied to the response variables (e.g., mean).
response
Optional; specifies which response variables to plot.
lty
Line type for plotting.
xlab
Label for the x-axis.
ylab
Label for the y-axis.
main
Main title for the plot.
ylim
Limits for the y-axis.
lm()
Fits a linear model to the response data in the factorial design object.
facDesign.c$lm(formula)
formula
Formula specifying the model to be fitted.
desires()
Get or set the desirability values for the response variables.
facDesign.c$desires(value)
value
List of new desirability values. If missing, retrieves the current desirability values.
set.fits()
Set the fits for the response variables in the factorial design object.
facDesign.c$set.fits(value)
value
New fits.
types()
Get or set the types of designs used in the factorial design object.
facDesign.c$types(value)
value
New design types. If missing, retrieves the current types.
unit()
Get or set the units for the factors in the factorial design object.
facDesign.c$unit(value)
value
New units. If missing, retrieves the current units.
.star()
Get or set the star points in the factorial design object.
facDesign.c$.star(value)
value
New star points. If missing, retrieves the current star points.
.blockGen()
Get or set the block generators in the factorial design object.
facDesign.c$.blockGen(value)
value
New block generators. If missing, retrieves the current block generators.
.block()
Get or set the blocks in the factorial design object.
facDesign.c$.block(value)
value
New blocks. If missing, retrieves the current blocks.
.centerCube()
Get or set the center points in the cube portion of the factorial design.
facDesign.c$.centerCube(value)
value
New center points for the cube. If missing, retrieves the current center points.
.centerStar()
Get or set the center points in the star portion of the factorial design.
facDesign.c$.centerStar(value)
value
New center points for the star. If missing, retrieves the current center points.
.generators()
Get or set the generators for the factorial design.
facDesign.c$.generators(value)
value
New generators. If missing, retrieves the current generators.
clone()
The objects of this class are cloneable with this method.
facDesign.c$clone(deep = FALSE)
deep
Whether to make a deep clone.
mixDesign.c
, taguchiDesign.c
.