Learn R Programming

r6qualitytools (version 1.0.1)

facDesign.c: facDesign-class: Class `facDesign`

Description

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.

Arguments

Public fields

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.

Methods


Method nrow()

Get the number of rows Design.

Usage

facDesign.c$nrow()


Method ncol()

Get the number of columns Design.

Usage

facDesign.c$ncol()


Method print()

Prints a formatted representation of the factorial design object, including design matrices and responses.

Usage

facDesign.c$print()


Method .clear()

Clears the factorial design object.

Usage

facDesign.c$.clear()


Method names()

Get or set the names of the factors in the factorial design.

Usage

facDesign.c$names(value)

Arguments

value

Character vector with new names for the factors. If missing, retrieves the current names.


Method as.data.frame()

Converts the factorial design object to a data frame.

Usage

facDesign.c$as.data.frame()


Method get()

Retrieves elements from the factorial design object.

Usage

facDesign.c$get(i, j)

Arguments

i

Row index.

j

Column index.


Method lows()

Get or set the lower bounds of the factors in the factorial design.

Usage

facDesign.c$lows(value)

Arguments

value

Numeric vector with new lower bounds. If missing, retrieves the current lower bounds.


Method highs()

Get or set the upper bounds of the factors in the factorial design.

Usage

facDesign.c$highs(value)

Arguments

value

Numeric vector with new upper bounds. If missing, retrieves the current upper bounds.


Method .nfp()

Prints a summary of the factors attributes including their low, high, name, unit, and type.

Usage

facDesign.c$.nfp()


Method identity()

Returns the factorial design object itself, used to verify or return the object.

Usage

facDesign.c$identity()


Method summary()

Summarizes the factorial design object.

Usage

facDesign.c$summary()


Method .response()

Get or set the response data in the factorial design object.

Usage

facDesign.c$.response(value)

Arguments

value

Data frame or numeric vector with new responses. If missing, retrieves the current responses.


Method effectPlot()

Plots the effects of factors on the response variables.

Usage

facDesign.c$effectPlot(
  factors,
  fun = mean,
  response = NULL,
  lty,
  xlab,
  ylab,
  main,
  ylim
)

Arguments

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.


Method lm()

Fits a linear model to the response data in the factorial design object.

Usage

facDesign.c$lm(formula)

Arguments

formula

Formula specifying the model to be fitted.


Method desires()

Get or set the desirability values for the response variables.

Usage

facDesign.c$desires(value)

Arguments

value

List of new desirability values. If missing, retrieves the current desirability values.


Method set.fits()

Set the fits for the response variables in the factorial design object.

Usage

facDesign.c$set.fits(value)

Arguments

value

New fits.


Method types()

Get or set the types of designs used in the factorial design object.

Usage

facDesign.c$types(value)

Arguments

value

New design types. If missing, retrieves the current types.


Method unit()

Get or set the units for the factors in the factorial design object.

Usage

facDesign.c$unit(value)

Arguments

value

New units. If missing, retrieves the current units.


Method .star()

Get or set the star points in the factorial design object.

Usage

facDesign.c$.star(value)

Arguments

value

New star points. If missing, retrieves the current star points.


Method .blockGen()

Get or set the block generators in the factorial design object.

Usage

facDesign.c$.blockGen(value)

Arguments

value

New block generators. If missing, retrieves the current block generators.


Method .block()

Get or set the blocks in the factorial design object.

Usage

facDesign.c$.block(value)

Arguments

value

New blocks. If missing, retrieves the current blocks.


Method .centerCube()

Get or set the center points in the cube portion of the factorial design.

Usage

facDesign.c$.centerCube(value)

Arguments

value

New center points for the cube. If missing, retrieves the current center points.


Method .centerStar()

Get or set the center points in the star portion of the factorial design.

Usage

facDesign.c$.centerStar(value)

Arguments

value

New center points for the star. If missing, retrieves the current center points.


Method .generators()

Get or set the generators for the factorial design.

Usage

facDesign.c$.generators(value)

Arguments

value

New generators. If missing, retrieves the current generators.


Method clone()

The objects of this class are cloneable with this method.

Usage

facDesign.c$clone(deep = FALSE)

Arguments

deep

Whether to make a deep clone.

See Also

mixDesign.c, taguchiDesign.c.