JenniNiku / gllvm

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

Covariates for row effects #184

Open BertvanderVeen opened 3 months ago

BertvanderVeen commented 3 months ago

Wishlist: allow row.eff to also include covariates (with/without random slopes?) for which effects are assumed to be the same for all species. This allows to fit models that answer questions both with respect to the total abundance or richness at a site, as well as for species/communities. E.g.,:

gllvm(y, X, row.eff = ~elevation + (1|area), formula = ~ shrubs, num.lv = 2)

gerverska commented 1 month ago

Hi Bert! This sounds like are really interesting enhancement (I think I have a perfect use case for it). Do you see this feature hitting the dev version anytime soon? All good if not--just curious.

BertvanderVeen commented 1 month ago

I have not worked on this (yet), and do not have the possibility to do so in the next half a year, earliest January. The implementation is relatively trivial, so it should be quick to implement.