Closed pneuvial closed 5 years ago
Clarification: The problem is in get.W()
and:
W <- t(apply(Y, MARGIN = 1L, FUN = function(y) {
lsei(A = Zt, B = y, E = E, F = 1, H = H, G = G, type = 2L)$X
}))
Fixed for K=1
by doing a workaround in get.W()
.
Reason:
apply(X, margin, FUN)
drops dimensions when FUN returns a scalar. This breaks a sanity checkget.W
Example: