R/dtanb.R

Defines functions dtanb

Documented in dtanb

#' The density function of the Tanget Burr Type XII probability distribution.
#' @export
#' @importFrom pracma sec
#'
#' @param x vector of quantiles.
#' @param c C parameter.
#' @param k K parameter.
#' @param s S parameter.
#' @return A vector with n observations of the Tanget Burr Type XII distribution.
#' @examples
#' dtanb(0.5,32.5,3,3.5)
#' dtanb(0.5,2,3,3)

dtanb<-function(x,c,k,s){
  (pi/4)*(c*k*x^(c-1)*s^(-c)*(1+(x/s)^c)^(-k-1))*sec((pi/4)*(1-(1+(x/s)^c)^(-k)))^2
}

Try the TanB package in your browser

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

TanB documentation built on May 29, 2017, 10:59 a.m.