Learn R Programming

ThurMod (version 1.1.11)

i.name: Creates names for paired comparisons of a given design.

Description

This function creates names for paired comparisons in the ixiy scheme. If items 1 and 2 are compared, this corresponds to i1i2.

Usage

i.name(blocks)

Value

Returns a character vector, containing names for all binary indicators of a design.

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.

Examples

Run this code

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

i.name(blocks)
    

Run the code above in your browser using DataLab