R/one_parci.R

Defines functions one_parci

Documented in one_parci

#' Calculates the confidence intervals for one condition
#' \code{one_parci} calculates the confidence intervals for one condition
#' @keywords internal
#' @export
one_parci <- function(d, ci) {
    parinf <- quantile(d$par, .5*(1 - ci))[[1]]
    parsup <- quantile(d$par, 1 - .5*(1 - ci))[[1]]
  data.frame(parinf, parsup)
}

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.