Learn R Programming

skewunit (version 1.0)

choose.skewunit: Choose a Distribution in a Family of Skew Distributions with Bounded Support

Description

choose.skewunit select a combination of \(f\) and \(G\) in a Family of Skew Distributions with Bounded Support based on the Akaike information criteria (AIC) or Bayesian information criteria (BIC).

Usage

choose.skewunit(x, criteria="AIC")

Value

an object of class "skewunit" is returned. The object returned for this functions is a list containing the following components:

x

x

Arguments

x

data in \((0,1)\) interval.

criteria

criteria to choose a model: AIC (default) or BIC.

Author

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

Details

The Family of Skew Distributions with Bounded Support is defined by its density function given by $$ f(x)=2 G(\lambda(y-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.

Examples

Run this code
set.seed(2100)
x=rskewunit(100, lambda=-0.5, delta=1.2, family1="asin", family2="triang")
aux=choose.skewunit(x, criteria="AIC")
aux
aux$summary

Run the code above in your browser using DataLab