R/dst_t.R

Defines functions dst_t

Documented in dst_t

#' The Student t Distribution
#'
#' Makes a distribution belonging to the family of
#' t distributions.
#'
#'@param df Degrees of freedom; positive.
#'
#'@examples
#' dst_t(3)
#'
#'@export
dst_t <- function(df){
  if (df <= 0) {
    stop('df must be positive.')
  }
  dst_parametric("t", df = df, .variable = "continuous", .env = "package:stats")
}
vincenzocoia/distionary documentation built on March 5, 2024, 3:13 a.m.