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.
Public fields
nameCharacter string representing the name of the factorial design.
factorsList of factors involved in the factorial design, including their levels and settings.
cubeData frame containing the design matrix for the cube portion of the factorial design.
starData frame containing the design matrix for the star portion of the factorial design.
centerCubeData frame containing the center points within the cube portion of the factorial design.
centerStarData frame containing the center points within the star portion of the factorial design.
generatorList of generators used to create the fractional factorial design.
responseData frame containing the responses or outcomes measured in the design.
blockData frame specifying the block structures if the design is blocked.
blockGenData frame specifying the block generators for the design.
runOrderData frame specifying the order in which runs are performed.
standardOrderData frame specifying the standard order of the runs.
desireValList of desired values or targets for the response variables.
desirabilityList of desirability scores or metrics based on the desired values.
fitsData frame containing the fitted model parameters and diagnostics for the responses in the design.
Methods
Method print()
Prints a formatted representation of the factorial design object, including design matrices and responses.
Method names()
Get or set the names of the factors in the factorial design.
Method as.data.frame()
Converts the factorial design object to a data frame.
Method get()
Retrieves elements from the factorial design object.
Method .nfp()
Prints a summary of the factors attributes including their low, high, name, unit, and type.
Method identity()
Returns the factorial design object itself, used to verify or return the object.
Method effectPlot()
Plots the effects of factors on the response variables.
Arguments
factorsFactors to be plotted.
funFunction applied to the response variables (e.g., mean).
responseOptional; specifies which response variables to plot.
ltyLine type for plotting.
xlabLabel for the x-axis.
ylabLabel for the y-axis.
mainMain title for the plot.
ylimLimits for the y-axis.
Method lm()
Fits a linear model to the response data in the factorial design object.