In v5.1 offsets and weights work as expected for glmSLMA
In v6.0-dev, the error is returned:
invalid type (closure) for variable '(offset)'
I believe this is related to the modification of line 167 onwards:
if(!(is.null(offset)))
{
cbindtext.offset <- paste0("cbind(", offset,")")
offset <- eval(parse(text=cbindtext.offset))
}
where in v6.0 we have the addition of env = parent.frame()
I will attempt to figure out what is going on, because I don't have a good understanding of the workings of R environments with DSI. But I guess that the offset vector is in the 'wrong' environment to be accessed by the glm model...