Learn R Programming

ibd (version 1.2)

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

Description

This function generates 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)

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.

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

incidence matrix of the generated block design

NNP

concurrence matrix of the generated design

Aeff

A-efficiency of the generated design

References

Mandal, BN, Gupta, VK 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
# NOT RUN {
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