Compute the p-value based on the check result
Source:R/zzz_auto_visual_inference.R
AUTO_VI-cash-p_value.Rd
This function computes the p-value of observing the visual signal strength of the original residual plot based on the null distribution.
Arguments
- vss
Numrice. A single numeric value indicating the visual signal strength for the true residual plot.
- null_dist
Numeric. A vector of numeric values indicating the visual signal strength for null residual plots.
Examples
vss <- 1
null_dist <- rnorm(100, 0, 1)
AUTO_VI$p_value(vss, null_dist)
#> [1] 0.1683168