Learn R Programming

spatialRF (version 1.1.5)

residuals_test: Normality test of a numeric vector

Description

Applies a Shapiro-Wilks test to a numeric vector, and returns a list with the statistic W, its p-value, and a character string with the interpretation.

Usage

residuals_test(residuals)

Value

A list with four slots:

  • /item w W statistic returned by shapiro.test(). /item p.value p-value of the Shapiro test. /item interpretation Character vector, one of "x is normal", "x is not normal". /item plot A patchwork plot with the qq plot and the histogram of x.

Arguments

residuals

Numeric vector, model residuals.

See Also

Other spatial_analysis: filter_spatial_predictors(), mem(), mem_multithreshold(), moran(), moran_multithreshold(), pca(), pca_multithreshold(), rank_spatial_predictors(), residuals_diagnostics(), select_spatial_predictors_recursive(), select_spatial_predictors_sequential()

Examples

Run this code

residuals_test(residuals = runif(100))

Run the code above in your browser using DataLab