Learn R Programming

ibd (version 1.0)

NNPmat: concurrence matrix from given incidence matrix of a block design

Description

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

Usage

NNPmat(N)

Arguments

N
incidence matrix

Value

  • NNPA v by v matrix with diagonal elements as replications of treatments and off-diagonal elements as concurrences between two treatments. Here 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)
NNPmat(N)

Run the code above in your browser using DataLab