#' Cauchy Distribution
#'
#' Makes a distribution belonging to the family of
#' cauchy distributions.
#'
#' @param location Location parameter
#' @param scale positive
#'
#' @examples
#' dst_cauchy(0, 1)
#'
#'@export
dst_cauchy <- function(location, scale){
if (scale <= 0){
stop('Scale must be positive')
}
dst_parametric(
"cauchy", location = location, scale = scale,
.variable = "continuous", .env = "package:stats"
)
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.