skewunit {skewunit}R Documentation

A Family of Skew Distributions with Bounded Support

Description

Density and random generation for a family of skew distributions with bounded support.

Usage

dskewunit(x, lambda = 0, delta = 1, delta2 = 1, family1 = "asin", family2 = "asin", 
          log = FALSE)
rskewunit(n, lambda = 0, delta = 1, delta2 = 1, family1 = "asin", family2 = "asin")

Arguments

x

vector of quantiles.

n

number of observations. If length(n) > 1, the length is taken to be the number required.

lambda

skewness parameter such as -1\leq \lambda \leq 1.

delta, delta2

shape parameters.

family1

first family of distributions related to f (asin by default). See details Section.

family2

second family of distributions related to G (asin by default). See details Section.

log

logical; if TRUE, probabilities p are given as log(p).

Details

The Family of Skew Distributions with Bounded Support is defined by its density function given by

f(x)=2 G(\lambda(x-0.5)+0.5), \quad x \in (0,1), \lambda \in (-1,1),

where f is symmetric around 0.5, i.e., f(x-0.5)=f(x+0.5). The avaliable options for family1 and family2 are asin, Uquad, triang, JSB and sbeta.

Value

dskewunit gives the density, and rskewunit generates random deviates. The length of the result is determined by n for rnorm, and is the maximum of the lengths of the numerical arguments for the other functions. The numerical arguments other than n are recycled to the length of the result. Only the first elements of the logical arguments are used.

Author(s)

Diego Gallardo, Emilio Gomez-Deniz, Osvaldo Venegas and Hector W. Gomez

Examples

dskewunit(c(0.2,0.8), lambda = 0.5, family1 = "asin", family2 = "asin")
rskewunit(100, lambda = -0.4, delta = 1, family1 = "triang", family2 = "JSB")

[Package skewunit version 1.0 Index]