Learn R Programming

adas.utils (version 1.3.0)

fp_defrel: Factorial Plan Defining Relationship

Description

Builds a formula from a number of factors

Usage

fp_defrel(arg)

Value

A formula.

Arguments

arg

If it is a formula, it is returned verbatim. If it is a number, a formula is built with the number of factors. If it is neither a formula nor a number, an error is thrown.

Examples

Run this code
# Defining relationships with three factors
fp_defrel(3)

# Defining relationship I=ABC
fp_defrel(~A*B*C)

Run the code above in your browser using DataLab