JenniNiku / gllvm

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

Ordinal model without latent variables #38

Closed BertvanderVeen closed 3 years ago

BertvanderVeen commented 3 years ago

Currently, when the number of latent variables in the model is set to zero, and TMB = TRUE, estimation is handled using the branch for the laplace approximation. However, this branch does not have the option for the ordinal model (this is in the VA branch), and the VA branch cannot be used when the number of latent variables in the model is zero.

Similarly, the gllvm.VA function is only implemented for species-specific cut-offs, though it can handle the absence of latent variables.

As a result, a model with species-common cut-offs, and no latent variables, cannot be fit. Preferably, this would be handled using TMB and the VA branch in the future.

JenniNiku commented 3 years ago

This is fixed now.