Learn R Programming

FindIt (version 0.2)

makellway: Constructing named all possible interactions from a given set of factors.

Description

makeallway takes a data frame of factors, each denoting a treatment level, and returns a matrix of 0's and 1's for all possible interactions.

Usage

makeallway(X, wts = 1)

Arguments

X
A matrix of data frame of treatments, each column interpreted as a factor.
wts
An optional set of extrapolation weights.

Value

  • XA named matrix of 0's and 1's.

Details

Useful for construcing a matrix for FindIt with type="multiple". Takes a data frame of factors and returns a design matrix with all possible interactions. A named matrix of 0's and 1's, for every possible interaction, is returned. Pairwise linearly dependent columns and columns of all 0's or 1's are eliminated.

Examples

Run this code
#See the help page for FindIt() for an example.

Run the code above in your browser using DataLab