Learn R Programming

rgr (version 1.1.7)

gx.triples.fgx: ANOVA to Estimate if Triples are a Valid Subset

Description

Function to execute a simple ANOVA to determine if the Field Duplicates are a valid subset of the regional coverage samples, and if the Field Duplicates pairs have equivalent variability. Optionally the data may be logarithmically (base 10) transformed.

Usage

gx.triples.fgx(x, RepStat, xname = deparse(substitute(x)),
	log = FALSE)

Arguments

x
a file of regional coverage and field duplicate data.
RepStat
the Replicate Status code.
xname
a informative description of the variable in the data file x for display as a table heading, for example, xname = "Ba (mg/kg - Aqua Regia digestion) in <2 mm="" unmilled="" c-horizon="" soil"<="" code="">. The default is simply 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 log = TRUE. This is also advisable if the range of the observations exceeds 1.5 orders of magnitude.

References

Garrett, R.G., submitted. Assessment of local spatial and analytical variability in regional geochemical surveys with a simple sampling scheme. Geochemistry: Exploration, Environment, Analysis.

See Also

ltdl.fix.df, remove.na, triples.test1, gx.triples.fgx, triples.test2

Examples

Run this code
## Make test data available
data(triples.test2)
attach(triples.test2)

## Carry out ANOVAs for equivalence of variances
gx.triples.fgx(Ba_ppm, RS, xname = 
"Ba (mg/kg - Aqua Regia digestion) in <2 mm unmilled C-horizon soil")

## Detach test data
detach(triples.test2)

Run the code above in your browser using DataLab