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