Research Article
Effect of Experimental Blocking on the Suppression of Spatial Dependence Potentially Attributable to Physicochemical Properties of Soils
Algorithm 2
Pseudocode to form the structure of the adjusted models.
| Var | | Trt: vector [1 ... 3] #treatments | | Block: vector [1… 10] #blocks | | Nsim: #simulations | | Start | | Solution: matrix [1… Nsim, 1… 20] | | For i =1 to Nsim | | Resp = vector [1… 30] ~ N (μ =300, σ =20) | | Resp = PartialSpatialSorted (Resp) | | Mod1 = AnalysisOfVariance (Resp ~ Trt) | | Mod2 = AnalysisOfVariance (Resp ~ Bloq + Trt) | | H = BlockEfficiency (Mod2) | | Solution [i, 1… 9] = tests (Residuals (Mod1)) | | Solution [i, 10… 18] = tests (Residuals (Mod2)) | | Solution [i, 19] = H | | Solution [i, 20] = pvalue (block (Mod2)) | | End For | | End |
|