Last chance! 50% off unlimited learning
Sale ends in
msn.affine(dp, a=0, A, drop=TRUE)
mst.affine(dp, a=0, A, drop=TRUE)
xi
, Omega
,
alpha
as described for dmsn
; for mst.affine
,
also a component df
ncol(A)
equal to nrow(dp$Omega)
length(a)
equal to nrow(dp$Omega)
TRUE
) operating when
nrow(A)
equals 1. If these conditions are met, the output
is provided in the form of parameters of a scalar distribution,
dsn
or dst
, dedp
Azzalini, A. and Capitanio, A. (2003). Distributions generated by perturbation of symmetry with emphasis on a multivariate skew-t distribution. J.Roy. Statist. Soc. B 65, 367--389.
Capitanio, A. et al. (2003). Graphical models for skew-normal variates. Scand. J. Statist. 30, 129--144.
dsn
, dst
, dmsn
, dmst
dp<- list(xi=c(1,1,2), Omega=toeplitz(1/1:3), alpha=c(3,-1,2))
A <- matrix(c(1,-1,1,3,0,-2), 2, 3, byrow=TRUE)
dp1 <- msn.affine(dp, 1:2, A)
#
dp$df <- 5
dp2<- mst.affine(dp,,A[1,,drop=FALSE])
dp3<- mst.affine(dp,,A[1,,drop=FALSE], drop=FALSE)
if(zapsmall(dp2$scale^2 - dp3$Omega)) print("something wrong here!")
Run the code above in your browser using DataLab