shapiroWilkTest {MorphoTools2}R Documentation

Shapiro-Wilk Normality Test

Description

Calculates the Shapiro-Wilk normality test of characters for taxa.

Usage

shapiroWilkTest(object, p.value = 0.05)

Arguments

object

an object of class morphodata.

p.value

a number or NA are acceptable. In the case of number, the output will be formatted as "normally distributed" or "NOT normally distributed". In the case of NA, exact p-values will be returned.

Value

A data.frame, storing results of Shapiro-Wilk normality test.

Examples

data(centaurea)

sW = shapiroWilkTest(centaurea)

## Not run: exportRes(sW, file = "sW_test.txt")

sW = shapiroWilkTest(centaurea, p.value = NA)

## Not run: exportRes(sW, file = "sW_test.txt")

[Package MorphoTools2 version 1.0.1.1 Index]