FisherS: Variable-wise Type III Fisher tests

View source: R/FisherS.R

FisherSR Documentation

Variable-wise Type III Fisher tests

Description

Computes the variable-wise Type III Fisher tests of a term from the model defined by formula. This enables investigating the most discriminant variables for that term and possibly leads to variable selection.

Usage

FisherS(
  formula,
  design,
  responses,
  term,
  alpha = 0.05,
  graph = TRUE,
  size.graph = 2.25
)

Arguments

formula

A formula with no left term that specify the model from the elements of the design argument.

design

A data.frame that contains only factors specifying the design on which rely the specified model of formula argument.

responses

A matrix or data.frame that contains only numerics or integers being the responses variables to be explained by the model from formula.

term

A character specifying the term from formula for which the MultLSD tests must be performed.

alpha

The alpha risk to evaluate significance of the p-values of each Type III Fisher test. Variables will be colored differently according to their significance with graph=TRUE.

graph

A logical indicating whether or not variable-wise Type III Fisher statistics must be plotted together with their significance and average value.

size.graph

If graph=TRUE, the overall size of labels and titles.

Value

A matrix with two rows and as much columns as responses. The first row contains the Type III Fisher statistic and the second row contains the fdr correct p-value.

Examples

data(OTU)
fish=FisherS(~Lot+Atm+Time,OTU[,1:4],OTU[,-c(1:4)],"Time")
print(fish)

MultANOVA documentation built on Sept. 1, 2025, 5:09 p.m.