Learn R Programming

ibd (version 1.5)

ibdtvc: incomplete block design for test vs control(s) comparions

Description

This function generates an incomplete block design for test vs control(s) comparisons with specified parameters and concurrence matrix.

Usage

ibdtvc(v1,v2,b,k,NNPo,ntrial=5,pbar=FALSE)

Value

v1=v1,v2=v2,b=b,k=k,design=design,N=N, NNP=NNP,Aeff=Aeff)

v1

number of test treatments

v2

number of control treatments

b

number of blocks

k

block size

design

generated block design

N

treatment by block incidence matrix of the generated block design

NNP

concurrence matrix of the generated design

Arguments

v1

number of test treatments

v2

number of control treatments

b

number of blocks

k

block size

NNPo

desired concurrence matrix

ntrial

number of trials, default is 5

pbar

Logical value indicating whether progress bar will be displayed. Default is FALSE.

Author

B N Mandal <mandal.stat@gmail.com>

References

Mandal, B. N., Gupta, V.K. and Parsad, R. (2013). Binary Incomplete Block Designs with a Specified Concurrence Matrix through Integer Programming, to be submitted for publication

Examples

Run this code
NNPo=matrix(c(7,3,3,3,3,3,3,3,3,7,3,3,3,3,3,3,3,3,7,3,3,3,3,3,3,3,3,7,3,3,3,3,3,3,3,3,7,
3,3,3,3,3,3,3,3,7,3,3,3,3,3,3,3,3,9,9,3,3,3,3,3,3,9,9),nrow=8,byrow=TRUE)
ibdtvc(6,2,15,4,NNPo)

Run the code above in your browser using DataLab