shapirotest.ANSM: Perform Shapiro-Wilk test of Normality

View source: R/shapirotest.ANSM.R

shapirotest.ANSMR Documentation

Perform Shapiro-Wilk test of Normality

Description

shapirotest.ANSM() is a wrapper for shapiro.test() from the stats package - performs the Shapiro-Wilk test of Normality and is used in chapters 4 and 5 of "Applied Nonparametric Statistical Methods" (5th edition)

Usage

shapirotest.ANSM(x, alternative = c("two.sided"))

Arguments

x

Numeric vector

alternative

Type of alternative hypothesis (defaults to c("two.sided"))

Value

An ANSMtest object with the results from applying the function

Examples

# Example 4.4 from "Applied Nonparametric Statistical Methods" (5th edition)
shapirotest.ANSM(ch4$ages)

# Example 5.3 from "Applied Nonparametric Statistical Methods" (5th edition)
shapirotest.ANSM(ch5$bp.incorrect)


ANSM5 documentation built on Sept. 11, 2024, 6:45 p.m.