Last data update: 2014.03.03
R: Missing value reconstruction based on ANOVA
Missing value reconstruction based on ANOVA
Description
Calculates an analysis of variance (ANOVA) based on the specified model.
Usage
aovWux(model.formula = formula(model.formula), datain.df)
Arguments
model.formula
Model formula used for aov
.
datain.df
WUX dataframe obtained from models2wux
.
Value
Returns a object of class wux.aov
, a list containing the
ANOVA results for each subregion and season. The names of the list
entries are "subreg = xx;season = yy".
Author(s)
Georg Heinrich g.heinrich@uni-graz.at
Examples
## read WUX test data
library("wux")
data(ensembles)
wuxtest.df <- subset(ensembles, subreg == "GAR")
## data reconstruction to obtain a balanced design
reconstruct.df <- reconstruct(wuxtest.df,
factor1.name = "acronym", factor2.name = "gcm", data.name =
"perc.delta.precipitation_amount")
## calculate ANOVA
anova.list <- aovWux(perc.delta.precipitation_amount ~ acronym +
gcm, reconstruct.df)
Results