Learn R Programming

ibd (version 1.1)

C: Information matrix from given incidence matrix of a block design

Description

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

Usage

C(N)

Arguments

N
incidence matrix

Value

  • Cv by v information matrix where v is number of treatments

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)
C(N)

Run the code above in your browser using DataLab