Description Usage Arguments Details Note Author(s) References See Also Examples

View source: R/gx.triples.aov.R

Function to undertake an ANOVA for the unbalanced triplicates from a GSC NGR or Tri-National survey. The data must be in the following order for each triplicate: Analytical Duplicate, Field Duplicate for the Analytical Duplicate Split, other Field Duplicate. The results replicate those generated by the UANOVA (Garrett and Goss, 1980) computer program. Optionally the data may be logarithmically (base 10) transformed.

1 2 | ```
gx.triples.aov(x, xname = deparse(substitute(x)), log = FALSE,
table = FALSE)
``` |

`x` |
a file of triplicate determinations, the order is critical, see Details below. |

`xname` |
by default the character string for the data file name, |

`log` |
if a logarithmic transformation of the data is required to meet homogeneity of variance considerations (i.e. severe heteroscedasticity) set |

`table` |
set |

As noted above, the order of the data is critical and must be as follows for each triplicate: Analytical Duplicate, Field Duplicate for the Analytical Duplicate Split, other Field Duplicate. The 'other Field Duplicate' is equivalent to a regular regional-coverage sample, but is at a 'Field Duplicate' site. Thus below, x[i,1] will contain the Analytical Duplicates, x[i,2] the Field Duplicates from which the Analytical Duplicates were split, and x[i,3] the other analytically unduplicated Field Duplicates. See Details in `triples.test1`

for additional information.

Any less than detection limit values represented by negative values, or zeros or other numeric codes representing blanks in the data, must be removed prior to executing this function, see `ltdl.fix.df`

.

Any `NA`

s in the data must also be removed prior to running the `triples.aov`

function. This requires care as the data must be in complete triplicate sets.

Robert G. Garrett

Bainbridge, T.R., 1963. Staggered, nested designs for estimating variance components. American Society for Quality Control, Convention Transactions, pp. 93-103.

Garrett, R.G., 2013. Assessment of local spatial and analytical variability in regional geochemical surveys with a simple sampling scheme. Geochemistry: Exploration, Environment, Analysis, 13(4):349-354, doi 10.1144.geochem2011-085.

Garrett, R.G. & Goss, T.I., 1980. UANOVA: A Fortran IV program for unbalanced nested anaylsis of variance. Mathematical Geology, 6(1):35-60.

Satterthwaite, F.E., 1946. An approximate distribution of estimates of variance components. Biometrics, 2(2):110-114.

Snee, R.D., 1974. Computation and use of expected mean squares in Analysis of Variance. Journal of Quality Technology, 6(3):128-137.

`ltdl.fix.df`

, `remove.na`

, `triples.test1`

, `gx.triples.fgx`

, `triples.test2`

1 2 3 4 5 6 7 8 9 10 | ```
## Make test data available
data(triples.test1)
attach(triples.test1)
## Carry out unbalanced ANOVA
gx.triples.aov(Ba_ppm, xname =
"Ba (mg/kg - Aqua Regia digestion) in <2 mm unmilled C-horizon soil")
## Detach test data
detach(triples.test1)
``` |

rgr documentation built on March 18, 2018, 1:59 p.m.

Embedding an R snippet on your website

Add the following code to your website.

For more information on customizing the embed code, read Embedding Snippets.