Q = structure(c(1, 0.85, 0.85, 0.85, 0.85,
0.85, 1 , 0.85, 0.85, 0.85,
0.85, 0.85 , 1 , 0.85, 0.85,
0.85, 0.85 , 0.85 , 1 , 0.85,
0.85, 0.85 , 0.85 , 0.85 , 1 ),
.Dim = c(5L,5L))
## default maxpts=25000 doesn't finish with error < abseps
mvgb::pmvss(lower=rep(-1,5),
upper=rep(1,5),
alpha=1,
Q=Q,
maxpts=25000)[c("value","inform","error")]
## increase maxpts to get inform value 0 (that is, error < abseps)
mvgb::pmvss(lower=rep(-1,5),
upper=rep(1,5),
alpha=1,
Q=Q,
maxpts=25000*350)[c("value","inform","error")]
set.seed(10)
shape_matrix <- structure(c(1, 0.9, 0.9, 0.9, 0.9, 0.9, 1, 0.9, 0.9, 0.9, 0.9,
0.9, 1, 0.9, 0.9, 0.9, 0.9, 0.9, 1, 0.9, 0.9, 0.9, 0.9, 0.9,
1), .Dim = c(5L, 5L))
mvgb::pmvss(lower=rep(-2,5),
upper=rep(2,5),
alpha=1.7,
Q=shape_matrix,
delta=rep(0,5),
maxpts=25000*30)[c("value","inform","error")]
Run the code above in your browser using DataLab