ispd: Incomplete split-plot design for given number of blocks,...

Description Usage Arguments Value Author(s) Examples

View source: R/ispd.R

Description

This function generates an incomplete split-plot design with given number of main plot treatments(v1), number of subplot treatments (v2), number of blocks(b) and block size(k). The incomplete split-plot design may be one of the three kinds: (i) blocks are complete with respect to main plot treatments and mainplots are incomplete with respect to subplot treatments, (ii) blocks are incomplete with respect to main plot treatments and mainplots are complete with respect to subplot treatments and (iii) blocks are incomplete with respect to main plot treatments and mainplots are also incomplete with respect to subplot treatments.

Usage

1
ispd(v1,v2,b,k1 = NULL,k2 = NULL)

Arguments

v1

number of main plot treatments

v2

number of subplot treatments

b

number of blocks

k1

number of main plot treatments in each block. If k1 is not specified, it is assumed that k1 = v1

k2

number of subplot treatments in each main plot. If k2 is not specified, it is assumed that k2 = v2

Value

A list containing parameters, design layout and column layout of design

Author(s)

Baidya Nath Mandal <mandal.stat@gmail.com>

Examples

1
2
3
ispd(v1 = 3, v2 = 4, b = 3, k1 = 2)
ispd(v1 = 3, v2 = 3, b = 3, k2 = 2)
ispd(v1 = 4, b = 6, k1 = 2, v2 = 3, k2 = 2)

Example output

Warning message:
no DISPLAY variable so Tk is not available 
$parameters
v1  b k1 v2 
 3  3  2  4 

$design
          Main Plot-1   Main Plot-2
Block-1 2 ( 2 4 3 1 ) 3 ( 1 4 3 2 )
Block-2 1 ( 1 2 3 4 ) 3 ( 2 4 3 1 )
Block-3 1 ( 1 4 3 2 ) 2 ( 1 2 3 4 )

$column.layout
   block mp sp
1      1  2  1
2      1  2  2
3      1  2  3
4      1  2  4
5      1  3  1
6      1  3  2
7      1  3  3
8      1  3  4
9      2  1  1
10     2  1  2
11     2  1  3
12     2  1  4
13     2  3  1
14     2  3  2
15     2  3  3
16     2  3  4
17     3  1  1
18     3  1  2
19     3  1  3
20     3  1  4
21     3  2  1
22     3  2  2
23     3  2  3
24     3  2  4

$parameters
v1  b v2 k2 
 3  3  3  2 

$design
        Main Plot-1 Main Plot-2 Main Plot-3
Block-1   3 ( 1 2 )   2 ( 2 3 )   1 ( 1 2 )
Block-2   2 ( 1 3 )   1 ( 1 3 )   3 ( 2 3 )
Block-3   1 ( 2 3 )   3 ( 1 3 )   2 ( 1 2 )

$column.layout
      block mp trt sp trt
 [1,]     1      1      1
 [2,]     1      1      2
 [3,]     1      2      2
 [4,]     1      2      3
 [5,]     1      3      1
 [6,]     1      3      2
 [7,]     2      1      1
 [8,]     2      1      3
 [9,]     2      2      1
[10,]     2      2      3
[11,]     2      3      2
[12,]     2      3      3
[13,]     3      1      2
[14,]     3      1      3
[15,]     3      2      1
[16,]     3      2      2
[17,]     3      3      1
[18,]     3      3      3

$parameters
v1  b k1 v2 k2 
 4  6  2  3  2 

$design
        Main Plot-1 Main Plot-2
Block-1   1 ( 1 3 )   4 ( 1 2 )
Block-2   1 ( 1 2 )   3 ( 2 3 )
Block-3   1 ( 2 3 )   2 ( 1 2 )
Block-4   3 ( 1 2 )   4 ( 1 3 )
Block-5   2 ( 2 3 )   4 ( 2 3 )
Block-6   2 ( 1 3 )   3 ( 1 3 )

$column.layout
      block mp sp
 [1,]     1  1  1
 [2,]     1  1  3
 [3,]     1  4  1
 [4,]     1  4  2
 [5,]     2  1  1
 [6,]     2  1  2
 [7,]     2  3  2
 [8,]     2  3  3
 [9,]     3  1  2
[10,]     3  1  3
[11,]     3  2  1
[12,]     3  2  2
[13,]     4  3  1
[14,]     4  3  2
[15,]     4  4  1
[16,]     4  4  3
[17,]     5  2  2
[18,]     5  2  3
[19,]     5  4  2
[20,]     5  4  3
[21,]     6  2  1
[22,]     6  2  3
[23,]     6  3  1
[24,]     6  3  3

ispd documentation built on Aug. 19, 2019, 5:05 p.m.

Related to ispd in ispd...