R/deviancep.R

Defines functions deviancep

Documented in deviancep

#' Calculates the probability of obtaining the deviance value or larger if the parametric model holds
#' \code{deviancep} calculates the probability of obtaining the deviance value or larger if the parametric model holds.
#' @keywords internal
#' @export
deviancep <- function(qp) {
  qp$devianceboot %>% group_by_(.dots = c(qp$groups)) %>%
    do(one_deviancep(., qp$groups, qp$deviance))
}

Try the quickpsy package in your browser

Any scripts or data that you put into this service are public.

quickpsy documentation built on Oct. 2, 2019, 5:03 p.m.