Learn R Programming

wux (version 2.1-1)

aovWux: 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".

encoding

UTF-8

Examples

Run this code
## 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)

Run the code above in your browser using DataLab