fp_alias_matrix: Build the alias matrix

fp_alias_matrixR Documentation

Build the alias matrix

Description

Given a list of formulas (defining relationships), this function returns a matrix of all possible aliases.

Usage

fp_alias_matrix(...)

Arguments

...

one or more formulas, or a single list of formulas, or a fractional factorial plan.

Details

It is also possible to pass a fractional factorial plan, in which case the defining relationships will be extracted from it.

Value

a square matrix: each cell is 0 if there is no alias, or an integer representing the index of the generator that produced that alias in the list of generators.

See Also

fp_fraction()

Examples

# with formulas:
fp_alias_matrix(~A*B*C, ~B*C*D)

# with a fractional factorial plan:
fp_design_matrix(5) %>%
  fp_fraction(~A*B*C*D) %>%
  fp_fraction(~B*C*D*E) %>%
  fp_alias_matrix() %>%
  plot()

adas.utils documentation built on April 12, 2025, 1:52 a.m.