R/dst_f.R

Defines functions dst_f

Documented in dst_f

#' F Distribution
#'
#' Makes a distribution belonging to the family of
#' F distributions.
#'
#' @param df1 degree of freedom, positive.
#' @param df2 degree of freedom, positive.
#'
#' @examples
#' dst_f(2, 3)
#' @export
dst_f <- function(df1, df2){
  if(df1 <= 0){
    stop('df1 must be positive')
  }
  if(df2 <= 0){
    stop('df2 must be positive')
  }
  dst_parametric(
    "f", df1 = df1, df2 = df2, .variable = "continuous", .env = "package:stats"
  )
}
vincenzocoia/distionary documentation built on March 5, 2024, 3:13 a.m.