Learn R Programming

ibd (version 1.5)

Cmatrix: Information matrix from given treatment by block incidence matrix of a block design

Description

This function gives the information matrix from a given treatment by block incidence matrix of a block design

Usage

Cmatrix(N)

Value

Cmatrix

v by v information matrix where v is number of treatments

Arguments

N

treatment by block incidence matrix

Author

B N Mandal <mandal.stat@gmail.com>

Examples

Run this code
N=matrix(c(1,0,0,0,1,0,1,0,0,0,1,0,1,1,0,0,1,0,1,1,0,1,0,1,1,0,0,0,0,1,1,0,0,0,1,1,1,0,0,0,1,0,0
,1,0,1,1,0,0),nrow=7,byrow=TRUE)
Cmatrix(N)

Run the code above in your browser using DataLab