Skip to contents

Function to show adtest.

Usage

print_adtest(x, digits = 4, quote = TRUE, prefix = "", ...)

Arguments

x

Needs to be an object of class adtest.

digits

Minimal number of significant digits.

quote

Logical, indicating whether or not strings should be printed with surrounding quotes. By default quote is set to TRUE.

prefix

Single character or character string that will be printed in front of x.

...

Further arguments passed to or from other methods.

Value

The function returns a summary of Anderson Darling Test

Examples

data <- rnorm(20, mean = 20)
pcr1<-pcr(data, "normal", lsl = 17, usl = 23, plot = FALSE)
#> Scale for x is already present.
#> Adding another scale for x, which will replace the existing scale.
#> 	Anderson Darling Test for normal distribution
#> 
#> data:  data 
#> A = 0.4264, mean = 20.111, sd = 1.210, p-value = 0.2841
#> alternative hypothesis: true distribution is not equal to normal 
print_adtest(pcr1$adTest)
#> 	Anderson Darling Test for normal distribution
#> 
#> data:  data 
#> A = 0.4264, mean = 20.111, sd = 1.210, p-value = 0.2841
#> alternative hypothesis: true distribution is not equal to normal