Nothing
#' Calculates the probability of obtaining the deviance value or larger if the
#' parametric model holds for one condition
#' \code{one_deviancep} calculates the probability of obtaining the deviance value
#' or larger if the parametric model holds for one condition
#' @keywords internal
#' @importFrom stats ecdf
#' @export
one_deviancep <- function(d, groups, deviance) {
if (length(groups) != 0) deviance <- semi_join(deviance, d, by = groups)
empiricalF <- ecdf(d$deviance)
p <- 1 - empiricalF(deviance$deviance)
data.frame(p)
}
Any scripts or data that you put into this service are public.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.