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.
Author(s)
Adelchi Azzalini
See Also
plot,SUNdistr-method,
summary,SUNdistr-method,
affineTransSUNdistr, marginalSUNdistr
convertSN2SUNdistr to convert a SECdistr object with family "SN" or "ESN" to the equivalent SUNdistr-class
object
Examples
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