Learn R Programming

ibd (version 1.0)

Cmat: information matrix from given incidence matrix of a block design and given constant block size

Description

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

Usage

Cmat(k,N)

Arguments

k
block size
N
incidence matrix

Value

  • Cv by v information matrix

Examples

Run this code
k=3
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)
Cmat(k,N)

Run the code above in your browser using DataLab