the getLoessCriticalValue function

getLoessCriticalValue(stats, pvals, signifValue = 0.05, plot = FALSE)

Arguments

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)

Value

numeric a critical value for the unadjusted significance value

Examples

stats = rchisq(100,1) pvals = 1 - pchisq(stats,1) criticalValue = getLoessCriticalValue(stats, pvals, plot = TRUE)
criticalValue
#> [1] 0.02278762