Skip to contents

This function computes the p-value of observing the visual signal strength of the original residual plot based on the null distribution.

Usage

AUTO_VI$p_value(
  vss = self$check_result$observed$vss,
  null_dist = self$check_result$null$vss
)

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.

Value

A numeric value representing the desired p-value.

Examples

vss <- 1
null_dist <- rnorm(100, 0, 1)
AUTO_VI$p_value(vss, null_dist)
#> [1] 0.1683168