Learn R Programming

ThurMod (version 1.1.11)

rankA: Determine the rank of the design matrix defined by the blocks.

Description

This function determines the rank of the fundamental design matrix defined by the blocks.

Usage

rankA(blocks)

Value

Returns the rank of the design matrix as an integer.

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 nine items divided by three triplets as blocks
blocks <- matrix(c(1:9), ncol = 3)

# Determine the rank of the design matrix
rankA(blocks)
    

Run the code above in your browser using DataLab