Learn R Programming

ibd (version 1.6)

N_to_design: Block Design from Given Treatment by Block Incidence Matrix

Description

Generates the block contents from a given treatment by block incidence matrix

Usage

N_to_design(N)
design(N)

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 labelled as 1, 2, ..., v.

Arguments

N

treatment by block incidence matrix

Author

Baidya Nath 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)
N_to_design(N)
design(N)

Run the code above in your browser using DataLab