| Title: | Tool for Construction of Two-Phase Experimental Designs |
|---|---|
| Description: | Provides functions to construct two-phase design layouts, compute treatment- and block-incidence matrices, derive C-matrices for residual, direct, and interaction effects, and calculate the efficiency factor for two-phase experimental designs with factorial treatment structure. |
| Authors: | Akhilesh Jha [aut, cre], Cini Varghese [aut], Seema Jaggi [aut], Eldho Varghese [aut], Mohd Harun [aut] |
| Maintainer: | Akhilesh Jha <[email protected]> |
| License: | GPL-3 |
| Version: | 1.0.0 |
| Built: | 2026-06-05 08:00:10 UTC |
| Source: | https://github.com/cran/TPDDev |
'TPDDev()' constructs a two-phase experimental design layout, computes the information matrices for residual, direct, and interaction effects, and calculates the efficiency factor.
TPDDev(d1, base_d2)TPDDev(d1, base_d2)
d1 |
Numeric matrix. Phase-I layout (rows = blocks, columns = plots per block). |
base_d2 |
Numeric matrix. Base Phase-II layout (rows = blocks, columns = plots per block). |
Steps performed:
Checks that 'ncol(d1)' equals 'nrow(base_d2)'.
Expands the Phase-II layout for each Phase-I block.
Builds the combined layout and treatment-incidence matrices.
Computes block-incidence matrix and overall mean matrix.
Derives overall C-matrix for factorial treatment effects.
Projects C-matrix to obtain residual, direct, and interaction effect matrices.
Calculates the efficiency factor of the design.
A list containing design parameters, combined two-phase design layout, information matrices, and efficiency factor.
d1 <- matrix(c( 1,2,3,4,5,6,7, 2,3,4,5,6,7,8, 3,4,5,6,7,8,1, 4,5,6,7,8,1,2, 5,6,7,8,1,2,3, 6,7,8,1,2,3,4, 7,8,1,2,3,4,5, 8,1,2,3,4,5,6 ), nrow = 8, byrow = TRUE) base_d2 <- matrix(c( 1,2,4, 2,3,5, 3,4,6, 4,5,7, 5,6,1, 6,7,2, 7,1,3 ), ncol = 3, byrow = TRUE) result <- TPDDev(d1, base_d2) result$efficiency_factor result$C_dird1 <- matrix(c( 1,2,3,4,5,6,7, 2,3,4,5,6,7,8, 3,4,5,6,7,8,1, 4,5,6,7,8,1,2, 5,6,7,8,1,2,3, 6,7,8,1,2,3,4, 7,8,1,2,3,4,5, 8,1,2,3,4,5,6 ), nrow = 8, byrow = TRUE) base_d2 <- matrix(c( 1,2,4, 2,3,5, 3,4,6, 4,5,7, 5,6,1, 6,7,2, 7,1,3 ), ncol = 3, byrow = TRUE) result <- TPDDev(d1, base_d2) result$efficiency_factor result$C_dir