Lambda4 (version 3.0)

bin.combs: Generate Unique Binary Combinations

Description

Provides all of the unique binary combinations for the cov.lambda4 function. It should be noted that this function does not provide all combinations but only ones that are unique for the cov.lambda4 function. That is a vector coded c(0,1,0,1) is equivalent to a vector c(1,0,1,0) and only one of them is generated.

Usage

bin.combs(p)

Arguments

p
The number of items in the test.

Value

Function returns a matrix of binary combinations coded as either -1 or 1.

Examples

Run this code
bin.combs(4)

Run the code above in your browser using DataLab