varcomp: Variance Components

View source: R/varcomp.R

varcompR Documentation

Variance Components

Description

This function estimates the variance components for ANOVA.

Usage

varcomp(a1, a2, f1, f2)

Arguments

a1, a2

analytical duplicates

f1, f2

field duplicates

Value

pct.regional

percentage of regional variability

pct.site

percentage at site variability

pct.analytical

percentage of analytical variability

pval

p-value

Author(s)

Peter Filzmoser <P.Filzmoser@tuwien.ac.at> http://cstat.tuwien.ac.at/filz/

References

C. Reimann, P. Filzmoser, R.G. Garrett, and R. Dutter: Statistical Data Analysis Explained. Applied Environmental Statistics with R. John Wiley and Sons, Chichester, 2008.

Examples

# field duplicates:
data(CHorFieldDUP)
xfield1=CHorFieldDUP[,5:98]
xfield2=CHorFieldDUP[,99:192]

# anaytical duplicates:
data(CHorANADUP)
xanal1=CHorANADUP[,3:96]
xanal2=CHorANADUP[,97:190]

varcomp(xanal1[,1],xanal2[,1],xfield1[,1],xfield2[,1])

StatDA documentation built on June 7, 2023, 6:26 p.m.

Related to varcomp in StatDA...