pair.combn: Determine all paired comparisons

View source: R/pair.combn.R

pair.combnR Documentation

Determine all paired comparisons

Description

This function returns a matrix containing all paired comparisons defined by a design.

Usage

pair.combn(blocks, unique = TRUE)

Arguments

blocks

A matrix defining the blocks of the model. The number of rows must be the number of blocks, each row represents a block and contains the item numbers. The number of columns present the number of items per block.

unique

Logical. Should only unique paired comparisons be returned?

Value

Returns a matrix with all paired comparisons defined by a design.

Examples


#' # Define 30 items divided by three triplets as blocks
blocks <- matrix(c(1:30), ncol = 3)

# Get all blocks
pair.combn(blocks)
    

ThurMod documentation built on Sept. 19, 2023, 5:07 p.m.