getLoessCriticalValue.Rdthe getLoessCriticalValue function
getLoessCriticalValue(stats, pvals, signifValue = 0.05, plot = FALSE)
| stats | a vector of DCARS test statistics for which permutation testing has been done |
|---|---|
| pvals | a vector of pvals for DCARS test |
| signifValue | significance value (default 0.05) |
| plot | logical (default FALSE) |
numeric a critical value for the unadjusted significance value
stats = rchisq(100,1) pvals = 1 - pchisq(stats,1) criticalValue = getLoessCriticalValue(stats, pvals, plot = TRUE)criticalValue#> [1] 0.02278762