Learn R Programming

r6qualitytools (version 1.0.1)

starDesign: starDesign: Axial Design

Description

starDesign is a function to create the star portion of a response surface design. The starDesign function can be used to create a star portion of a response surface design for a sequential assembly strategy. One can either specify k and p and alpha and cs and cc OR simply simply pass an object of class facDesign.c to the data. In the latter an object of class facDesign.c otherwise a list containing the axial runs and centerpoints is returned.

Usage

starDesign(
  k,
  p = 0,
  alpha = c("both", "rotatable", "orthogonal"),
  cs,
  cc,
  data
)

Value

starDesign returns a facDesign.c object if an object of class facDesign.c is given or a list containing entries for axial runs and center points in the cube and the star portion of a design.

Arguments

k

Integer value giving number of factors.

p

Integer value giving the number of factors via aliasing. By default set to `0`.

alpha

If no numeric value is given defaults to `both` i.e. `orthogonality` and `rotatibility` which can be set as character strings too.

cs

Integer value giving the number of centerpoints in the star portion of the design.

cc

Integer value giving the number of centerpoints in the cube portion of the design.

data

Optional. An object of class facDesign.c.

See Also

facDesign, fracDesign, rsmDesign, mixDesign

Examples

Run this code
# Example 1: sequential assembly
# Factorial design with one center point in the cube portion
fdo = facDesign(k = 3, centerCube = 1)
# Set the response via generic response method
fdo$.response(1:9)
# Sequential assembly of a response surface design (rsd)
rsd = starDesign(data = fdo)

# Example 2: Returning a list of star point designs
starDesign(k = 3, cc = 2, cs = 2, alpha = "orthogonal")
starDesign(k = 3, cc = 2, cs = 2, alpha = "rotatable")
starDesign(k = 3, cc = 2, cs = 2, alpha = "both")

Run the code above in your browser using DataLab