Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

convertSN2SUNdistr

Convert a SN distribution into a SUN


Description

An object of SECdistrMv-class or SECdistrUv-class representing a SN or ESN distribution is converted into a SUNdistr-class object representing the same distribution.

Usage

convertSN2SUNdistr(object, HcompNames = "h", silent = FALSE)

Arguments

object

an object of SECdistrMv-class with family of type SN or ESN.

HcompNames

an optional character string for the hidden component

silent

a logical value which controls the behaviour if the supplied object is not suitable. If silent = FALSE (detault value) an error message is generated, otherwise a NULL is silently returned.

Value

an object of SUNdistr-class

Author(s)

Adelchi Azzalini

See Also

Examples

esn <- makeSECdistr(dp=c(0, 1, 2, 0.5), family="ESN")
sun <- convertSN2SUNdistr(esn)
mean(sun) - mean(esn)
vcov(sun) - sd(esn)^2
#
dp0 <- list(xi=1:2, Omega=diag(3:4), alpha=c(3, -5))
f10 <- makeSECdistr(dp=dp0, family="SN", name="SN-2d", compNames=c("u1", "u2"))
sun10 <- convertSN2SUNdistr(f10)
mean(sun10) - mean(f10)
vcov(sun10) - vcov(f10)

sn

The Skew-Normal and Related Distributions Such as the Skew-t and the SUN

v2.0.0
GPL-2 | GPL-3
Authors
Adelchi Azzalini [aut, cre] (<https://orcid.org/0000-0002-7583-1269>)
Initial release
2021-03-28

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.