Learn R Programming

ibd (version 1.2)

N_to_design: incidence matrix from given block design

Description

This function generates the block contents from a given incidence matrix

Usage

N_to_design(N)

Arguments

N

incidence matrix

Value

design

A matrix with number of rows equal to number of blocks and number of columns equal to block size. Constant block size is assumed. Treatments are numbered as 1, 2, ..., v

Examples

Run this code
# NOT RUN {
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)
N_to_design(N)
# }

Run the code above in your browser using DataLab