agnostic.aov: Agnostic Analysis of Variance Model

Description Usage Arguments Value Examples

View source: R/agnostic.aov.R

Description

Fit an analysis of variance model under agnostic perspective.

Usage

1
2
agnostic.aov(formula, data = NULL, projections = FALSE, qr = TRUE,
  contrasts = NULL, ...)

Arguments

formula

A formula specifying the model.

data

A data frame in which the variables specified in the formula will be found. If missing, the variables are searched for in the standard way.

projections

Logical flag: should the projections be returned?

qr

Logical flag: should the QR decomposition be returned?

contrasts

A list of contrasts to be used for some of the factors in the formula. These are not used for any Error term, and supplying contrasts for factors only in the Error term will give a warning.

...

Arguments to be passed to lm, such as subset or na.action. See 'Details' about weights.

Value

An object of class c("agnostic.aov", "lm") or for multiple responses of class c("maov", "agnostic.aov", "mlm", "lm") or for multiple error strata of class c("aovlist", "listof"). There are print and summary methods available for these.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
#Test data
obs <- c(54, 60, 59, 45, 40, 55, 47, 33, 51, 66, 44,
34, 36, 61, 49, 48, 50, 54, 62, 42, 48, 61, 60, 44)
obs2 <- rnorm(24)
groups <- as.factor(rep(c("A", "B", "c", "D"), 6))
groups2 <- as.factor(rep(c("A", "D", "B", "C"), 6))

mod1 <- agnostic.aov(obs ~ groups)
summary(mod1)
mod2 <- agnostic.aov(cbind(obs, obs2) ~ groups * groups2)
summary(mod2)

vcoscrato/agnostic documentation built on April 4, 2020, 11:27 a.m.