shapiro_if_possible {YAPSA} | R Documentation |
Wrapper for Shapiro test but allow for all identical values
shapiro_if_possible(in_vector)
in_vector |
Numerical vector the Shapiro-Wilk test is computed on |
p-value of the Shapiro-Wilk test, zero if all entries in the input
vector in_vector
are identical.
shapiro_if_possible(runif(100,min=2,max=4)) shapiro_if_possible(rnorm(100,mean=5,sd=3)) shapiro_if_possible(rep(4.3,100)) shapiro_if_possible(c("Hello","World"))