check_variances: Test homoscedasticity of the residuals across groups

Description Usage Arguments Value Author(s)

View source: R/check_variances.R

Description

This function tests for the homogeneity of the residuals across groups. It performs one Bartlett's test for each dependent variable. P-values are corrected.

Usage

1
check_variances(specdata, vars, method = "bonferroni")

Arguments

specdata

A data frame containing at least columns for the dependent variables, as well as a column "island" and a column "habitat".

vars

A character or integer vector. The names, or indices, of the dependent variables in specdata.

method

A character, the method used for P-value correction. See ?p.adjust.

Value

A data frame with Bartlett's K^2 statistic, the degrees of freedom of the approximate chi-squares distribution, P-value and adjusted P-value, for each dependent variable.

Author(s)

Raphael Scherrer


rscherrer/sagreicolor documentation built on May 26, 2019, 12:32 p.m.