Learn R Programming

TwoPhaseCorR (version 1.1.1)

TwoPhaseDesign: Construct Two-Phase Experimental Designs with Correlated Errors

Description

Constructs a two-phase experimental design, computes component information matrices, and evaluates the efficiency factor across intra-block correlations values.

Usage

TwoPhaseDesign(v, rho, plot = TRUE, n_table = 10, tol = 0.001)

Value

A list with design layouts, component information matrices, efficiency plot, summary efficiency table, and filtered efficiency table.

Arguments

v

Integer (greater than or equal to 3). Number of treatments in Phase II.

rho

Intra-block correlation coefficient. A numeric value in (-1, 1).

plot

Logical. If TRUE, plots Efficiency Factor vs Intra-block correlation coefficient.

n_table

Number of efficiency values to display in the output table.

tol

Tolerance level for classifying Efficiency Factor as approximately equal to 1. Default is 1e-3.

References

McIntyre, G. A. (1955). Design and analysis of two-phase experiments. Biometrics, 11(3), 324-334. <doi:10.2307/3001770>

Examples

Run this code
result <- TwoPhaseDesign(v = 4, rho = 0.25, plot = FALSE)
print(result$C_mat_trt2)
print(result$eff_summary)

Run the code above in your browser using DataLab