balancify: Position balanced and nearly position balanced block design

Description Usage Arguments Value Note Author(s) Examples

View source: R/pbbd.R

Description

This function generates a position balanced or nearly position balanced block design from a given equireplicate and proper block design

Usage

1

Arguments

d1

Block design specified in the form of a b x k matrix with elements labelled as 1 to v where b is number of blocks, k is block size and v is number of treatments

Value

design

(Nearly) position balanced block design

P

Treatment by Position incidence matrix

Note

Input design should be equireplicate that is, each treatment should have equal replications. Block sizes should be same for each block. For any issue, kindly report to author.

Author(s)

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

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
d1 = matrix(c(3,  4,    6,
5,    6,    7,
1,   4,    5,
2,    4,    7,
1,    3,    7,
1,    2,    6,
2,    3,    5), ncol = 3, byrow = TRUE)
balancify(d1)

d1 = matrix(c(7	,	8	,	9	,
              1	,	6	,	8	,
              1	,	3	,	9	,
              4	,	6	,	9	,
              5	,	6	,	7	,
              1	,	4	,	5	,
              3	,	5	,	8	,
              3	,	4	,	7	,
              2	,	5	,	9	,
              2	,	4	,	8	,
              1	,	2	,	7	,
              2	,	3	,	6), ncol = 3, byrow = TRUE)
balancify(d1)

pbbd documentation built on Sept. 8, 2021, 9:08 a.m.

Related to balancify in pbbd...