shapiro_if_possible {YAPSA} | R Documentation

## Wrapper for Shapiro test but allow for all identical values

### Description

Wrapper for Shapiro test but allow for all identical values

### Usage

    shapiro_if_possible(in_vector)

### Arguments

`in_vector` | Numerical vector the Shapiro-Wilk test is computed on

### Value

p-value of the Shapiro-Wilk test, zero if all entries in the input vector `in_vector` are identical.

### See Also

`shapiro.test`

### Examples

     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"))

[Package YAPSA version 1.18.0 Index]