SUNdistr-class | R Documentation |
"SUNdistr"
and its methodsA class of objects representing Unified Skew-Normal (SUN) distributions.
See SUNdistr-base
for a description of the
required structure of dp
.
Note that here the methods mean
and vcov
are not applied
to data or to a fitted model, but to a probability
distribution, of which they provide the mean (expected) value
and the variance-covariance matrix.
The object of this class follow the S4 protocol.
Objects can be created by a call to the function makeSUNdistr
or by a suitable transformation of some object of this class.
dp
:a list of parameters of length five,
as described in SUNdistr-base
name
:a character string with the name of the multivariate variable; it can be an empty string.
compNames
:a vector of character strings with the names of the component variables.
a vector of character strings with the names of the hidden variables.
signature(object = "SUNdistr-class")
: ...
signature(x = "SUNdistr-class")
: ...
signature(object = "SUNdistr-class")
: ...
signature(x = "SUNdistr")
: ...
signature(object = "SUNdistr")
: ...
Adelchi Azzalini
plot,SUNdistr-method
, \quad
summary,SUNdistr-method
, \quad
affineTransSUNdistr
, marginalSUNdistr
convertSN2SUNdistr
to convert a SECdistr
object with
family "SN"
or "ESN"
to the equivalent SUNdistr-class
object
xi <- c(1, 0, -1)
Omega <- matrix(c(2,1,1, 1,3,1, 1,1,4), 3, 3)
Delta <- matrix(c(0.72,0.20, 0.51,0.42, 0.88, 0.94), 3, 2, byrow=TRUE)
Gamma <- matrix(c(1, 0.8, 0.8, 1), 2, 2)
dp3 <- list(xi=xi, Omega=Omega, Delta=Delta, tau=c(-0.5, 0), Gamma=Gamma)
sun3 <- makeSUNdistr(dp=dp3, name="firstSUN", compNames=c("x", "w", "z"))
show(sun3)
plot(sun3)
mean(sun3) # the mean value of the probability distribution
vcov(sun3) # the variance-covariance matrix of the probability distribution
summary(sun3) # a more detailed summary
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.