ggstatsplot (version 0.0.6)

normality_message: Display normality test result as a message.

Description

A note to the user about the validity of assumptions for the default linear model.

Usage

normality_message(x, lab = NULL, k = 3, output = "message")

Arguments

x

A numeric vector.

lab

A character describing label for the variable. If NULL, a generic "x" label will be used.

k

Number of decimal places expected for results (Default: 3).

output

What output is desired: "message" (default) or "stats" objects.

Value

A list with class "htest" containing the following components:

statistic

the value of the Shapiro-Wilk statistic.

p.value

an approximate p-value for the test. This is said in Royston (1995) to be adequate for p.value < 0.1.

method

the character string "Shapiro-Wilk normality test".

data.name

a character string giving the name(s) of the data.

See Also

ggbetweenstats

Other helper_messages: bartlett_message

Examples

Run this code
# NOT RUN {
# message
normality_message(x = datasets::anscombe$x1)

# statistical test object
normality_message(
  x = datasets::anscombe$x2,
  output = "stats"
)
# }

Run the code above in your browser using DataLab