R/t_dist_two_tailed.R

Defines functions t_dist_two_tailed

Documented in t_dist_two_tailed

#' T distribution - two-tailed
#'
#' @param t_score t value
#' @param degrees_of_freedom degrees of freedom
#' @importFrom stats pt
#' @return value

t_dist_two_tailed <- function(t_score, degrees_of_freedom) {
  2 * pt(-abs(t_score), degrees_of_freedom)
}

Try the experiences package in your browser

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

experiences documentation built on Oct. 31, 2022, 5:06 p.m.