R/curvesbootstrap.R

Defines functions curvesbootstrap

Documented in curvesbootstrap

#' Creates the bootstrap curves
#' \code{curvesbootstrap} creates the bootstrap curves
#' @keywords internal
#' @export
curvesbootstrap <- function(qp, xmin = NULL, xmax = NULL, log = F) {
  if (length(qp$groups) == 0)
    parboot <- qp$parbootstrap %>% group_by(pick(all_of("sample")))
  else
    parboot <- qp$parbootstrap %>%
      group_by(pick(all_of(c(qp$groups, "sample"))))

  parboot %>% do(one_curve(., xmin, xmax, log, qp$groups, qp$limits,
                                   qp$psyfunguesslapses))

}

Try the quickpsy package in your browser

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

quickpsy documentation built on March 11, 2026, 5:06 p.m.