djsb | R Documentation |
Computes the probability density function of the four-parameter JSB distibution given by
f\bigl(x\big|Θ\bigr) = \frac {δ λ}{√{2π}(x-ξ)(λ+ξ-x)}\exp\Biggl\{-\frac{1}{2}\Bigg[γ+δ\log \biggl(\frac{x-ξ}{λ+ξ-x}\biggr) \Bigg]^2\Biggr\},
where ξ<x<λ+ξ, Θ=(δ,γ,λ,ξ)^T with δ, λ> 0, -∞<γ<∞, and -∞<ξ<∞.
djsb(data, param, log = FALSE)
data |
Vector of observations. |
param |
Vector of the parameters δ, γ, λ, and ξ. |
log |
If |
A vector of length n
, giving random generated values from JSB distribution.
Mahdi Teimouri
data<-rnorm(10) param<-c(delta<-1, gamma<-3, lambda<-12, xi<-5) djsb(data, param, log = FALSE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.