R/calc_stats.R

Defines functions calc_stats

calc_stats <-
function(epsp, stat){
  stopifnot(is.numeric(epsp))
  output <- numeric(length(stat))
  for(i in seq_along(stat)){
    output[[i]] <- get(stat[i])(epsp)
  }
  return(output)
}

Try the distfreereg package in your browser

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

distfreereg documentation built on April 4, 2025, 12:30 a.m.