OneWayMANOVA: 'OneWayMANOVA'

Description Usage Arguments Details

View source: R/onewaymanova.R

Description

Computes a one-way analysis of variance with post hoc tests.

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
OneWayMANOVA(
  outcomes,
  predictor,
  subset = NULL,
  weights = NULL,
  robust.se = FALSE,
  missing = "Exclude cases with missing data",
  show.labels = FALSE,
  seed = 1223,
  p.cutoff = 0.05,
  binary = FALSE,
  pillai = FALSE,
  fdr = TRUE,
  return.all = FALSE,
  ...
)

Arguments

outcomes

The outcome variables.

predictor

The factor representing the groups.

subset

An optional vector specifying a subset of observations to be used in the fitting process, or, the name of a variable in data. It may not be an expression. subset may not

weights

An optional vector of sampling weights, or, the name or, the name of a variable in data. It may not be an expression.

robust.se

Computes standard errors that are robust to violations of the assumption of constant variance. This parameter is ignored if weights are applied (as weights already employ a sandwich estimator).

missing

How missing data is to be treated in the ANOVA. Options: "Error if missing data", "Use partial data", and "Exclude cases with missing data". Option "Use partial data" will run separate one way ANOVAs with missing data filtered out for each outcome variable separately.

show.labels

Shows the variable labels, as opposed to the labels, in the outputs, where a variables label is an attribute (e.g., attr(foo, "label")).

seed

The random number seed used when evaluating the multivariate t-distribution.

p.cutoff

The alpha level to be used in testing.

binary

Automatically converts non-ordered factors to dummy-coded (binary indicator) variables.

pillai

If TRUE, Pillai's Trace is computed as the overall MANOVA statistic.

fdr

If TRUE, the False Discovery Rate correction is applied. This is the default.

return.all

If TRUE, returns all the internal computations in the output object. If FALSE, returns just the information required to print the output.

...

Other parameters to be passed to OneWayANOVA.

Details

By default, the overall p-value is computed as the smallest p-value in any cell following application of the False Discovery Rate correction to the p-values. If thefdr is set to FALSE, the correction is not applied, which means that the overall p-value is the smallest of the uncorrected p-values, and, additionally, the p-values for each row are from the OneWayANOVA F-tests.

Tests are two-sided, comparing to the Grand Mean (i.e., "To mean" in OneWayANOVA).

Additional detail about the other parameters can be found in OneWayANOVA.


Displayr/flipAnalysisOfVariance documentation built on Aug. 11, 2021, 12:58 a.m.