# Basic example using a single-factor design with the data in compiled format.
# Ficticious data present frequency of observation classified according
# to Intensity (three levels) and Pitch (two levels) for 6 possible cells.
minimalExample
formula <- Frequency ~ Intensity * Pitch
w <- anofa(formula, minimalExample)
summary(w)
# To know more about other ways to format the datasets,
# see, e.g., `toRaw()`, `toLong()`, `toWide()`
w <- anofa(formula, minimalExample)
toWide(w)
# See the vignette `DataFormatsForFrequencies` for more.
# Real-data example using a two-factor design with the data in compiled format:
LandisBarrettGalvin2013
w <- anofa( obsfreq ~ program * provider, LandisBarrettGalvin2013 )
summary(w)
# You can ask easier outputs
w <- anofa(formula, minimalExample)
summarize(w) # or summary(w) for the ANOFA table
explain(w) # human-readable ouptut
Run the code above in your browser using DataLab