3. CORRIENTES RESIDUALES A TRATAR
3.2. Residuos orgánicos
3.2.2. Excretas de animales
The standard (asymptotic) confidence interval was formulated in Section 3.5.1 and the results obtained will be displayed and discussed. Three methods were used to obtain the standard errors, viz. TSL, JRR and the bootstrap, that will be used in the calculation of the standard interval. Furthermore, the bootstrap percentile interval is a non-parametric confidence interval obtained from taking the percentiles of the estimates obtained from the bootstrap samples. The bootstrap samples were simulated from the samples discussed in Section 4.5.2. These samples formed the basis from which the estimates were calculated. The coverage probabilities were obtained for both SAS and R and the output is displayed for SRS and CS using the weights Design, 𝐿𝑖𝑛𝑝𝑝, 𝐿𝑖𝑛𝑝ℎ, 𝑅𝑅𝑝𝑝 and 𝑅𝑅𝑝ℎ. The probability values range from 0 to 1 with the ideal probability being 0.95; the level of significance. A selection of results is displayed in Figure 18 toFigure 20. The remainder is included in Appendix C1 to C19. The top left panel displays the coverage probability for the standard interval based on the TSL estimated variance, the top right panel displays the coverage probability for the standard interval based on the JRR estimated variance, the bottom left panel shows the coverage
probability for the standard interval based on the bootstrap estimated variance and the bottom right panel shows the coverage probability for the bootstrap percentile interval.
Figure 18: The coverage probabilities for 𝛽0 under SRS and other weighting methods using TSL, JRR, the bootstrap estimated variances and for the bootstrap percentile interval are shown for SAS and R.
In Figure 18, the R and SAS output for the coverage probability values for the 𝛽0 parameter were the same as when TSL variance estimation was used. The coverage probability of the intervals obtained using the design weight and SRS were the furthest from the level of
significance of 0.95. The coverage probabilities of the remaining intervals were all equidistant from the level of significance.
Figure 18, also shows a difference between the SAS and R outputs for the coverage probabilities of the interval for 𝛽0 in which the JRR estimated variance was used. The
differences were attributed to quasi-separation of data points in some of the replicates. The coverage probability for the results from R deviated more from the level of significance as opposed to the SAS results. The results for the estimates obtained from the weights 𝐿𝑖𝑛𝑝ℎ,
𝑅𝑅𝑝𝑝 and 𝑅𝑅𝑝ℎ for the SAS output were the closest to the level of significance.
As noted in Section 3.4.2.2.2 the bootstrap variance may differ, therefore the results obtained from SAS and R are different. As shown in Figure 18, R produced larger coverage probabilities than SAS. The weights 𝑅𝑅𝑝𝑝 and 𝑅𝑅𝑝ℎ had better coverage for both SAS and R.
The bootstrap percentile interval’s coverage probabilities on the other hand were the same for SAS and R. This is due to the same bootstrap samples being used for both software programs. The coverage probabilities for 𝐿𝑖𝑛𝑝ℎ were the closest to the level of significance. This in comparison to the Design weight that deviated the furthest from the level of significance. Overall, when the TSL estimated variance was used, the results showed more stable coverage probabilities and less deviation from the level of significance across methods was observed. As opposed to the bootstrap that showed greater fluctuations across methods. In terms of the variances produced from the different weighting methods, 𝐿𝑖𝑛𝑝ℎ, 𝑅𝑅𝑝𝑝 and 𝑅𝑅𝑝ℎ showed less deviation from the level of significance across methods.
Figure 19: The coverage probabilities for 𝛽4 under SRS and other weighting methods using TSL, JRR, the bootstrap estimated variances and for the bootstrap percentile interval are shown for SAS and R.
In Figure 19, the results for SAS and R for the coverage probabilities using TSL were the same and better coverage were produced using the Design weight in comparison to coverage probabilities produced for SRS for the parameter 𝛽4.
The results shown for JRR variance estimation for the Design weight, 𝐿𝑖𝑛𝑝𝑝 and 𝐿𝑖𝑛𝑝ℎ differed for SAS and R. Better coverage probabilities were shown for R across different methods with the Design and 𝐿𝑖𝑛𝑝𝑝 weights being the closest to the level of significance.
When the bootstrap variance estimation was used the SAS output’s coverage probabilities were smaller than when output was obtained from R. R also produced better coverage as opposed to that of SAS, with the Design weight producing the best coverage.
The bootstrap percentile interval’s coverage probabilities showed that the coverage probabilities for SRS deviated the furthest from the level of significance. 𝐿𝑖𝑛𝑝ℎ and 𝑅𝑅𝑝ℎ
coverage probabilities were the closest to the level of significance.
In general, the coverage probabilities for 𝛽4 showed contrasting results, once more when the TSL variance estimator was used, better coverage was observed across weighting methods.
Figure 20: The coverage probabilities for 𝛽7 under SRS and other weighting methods using TSL, JRR, the bootstrap estimated variances and for the bootstrap percentile interval are shown for SAS and R.
In Figure 20, the TSL estimated variance coverage probabilities for SAS and R were once again the same. The weighting methods Design and 𝑅𝑅𝑝ℎ deviated the least from the level of significance with 𝐿𝑖𝑛𝑝𝑝 deviating the furthest from the level of significance.
The JRR estimated variance coverage probabilities produced slight differences for SAS and R for 𝐿𝑖𝑛𝑝𝑝 and 𝐿𝑖𝑛𝑝ℎ. The coverage probabilities for Design and 𝑅𝑅𝑝ℎ deviated the smallest
from the level of significance, closely followed by 𝐿𝑖𝑛𝑝ℎ obtained from R. The SAS output displayed for 𝐿𝑖𝑛𝑝𝑝 and 𝐿𝑖𝑛𝑝ℎ deviated the furthest from the level of significance.
Figure 20, also shows contrasting results for SAS and R for the bootstrap estimated variance coverage probabilities. The output obtained from R performed slightly better than that obtained from SAS. The weight 𝑅𝑅𝑝ℎ obtained from R was the closest to the level of
significance.
The bootstrap percentile interval’s coverage probabilities were the same for SAS and R. The weight Design deviated the least from the level of significance.
Overall, for parameter 𝛽7 the weights Design and 𝑅𝑅𝑝ℎ deviated the least from the level of significance with output obtained from R generally doing better.