JenniNiku / gllvm

Generalized Linear Latent Variable Models
https://jenniniku.github.io/gllvm/
48 stars 20 forks source link

gllvm breaks the predict function! #65

Closed dwarton closed 2 years ago

dwarton commented 2 years ago
data(iris)
ft=lm(Sepal.Length~Species,data=iris)
predict(ft)
library(gllvm)
predict(ft)

For me this returns an error on the second predict call, because loading gllvm seems to have overwritten methods for the predict function!!! I similar get errors attempting to predict on any other fitted object, after loading gllvm

dwarton commented 2 years ago

The problem seems to be lines 399-403 of predict.gllvm.R which I would suggest need to be deleted!