shapiro.test2: An inner version of 'shapiro.test' with two modifications.

View source: R/statistics.R

shapiro.test2R Documentation

An inner version of shapiro.test with two modifications.

Description

  • Always return FALSE for sample size less than 3.

  • Always return TRUE for sample size larger than given threshold (default 1000)

Usage

shapiro.test2(data, threshold = 1000)

Arguments

data

A vector of observation values.

threshold

A number to define large sample size. Default 1000. For data with more than given threshold samples, always assume they past normality test,

Value

A logical value

Examples


shapiro.test2(c(1,2,3,4))


Tong-Chen/ImageGP documentation built on April 14, 2025, 12:54 p.m.