JenniNiku / gllvm

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

Cleaning up SEs processing #127

Closed BertvanderVeen closed 1 year ago

BertvanderVeen commented 1 year ago

For ease of further maintenance:

this way, we do not need to maintain the processing of SEs in three different places. I also replaced the "se[-c(..)]" with a function in gllvm.aux that splits the se vector by name automatically. This is less prone to bugs, because se[-c(..)] is sensitive to the order of parameters. I.e., previously, if parameter vectors were accidentally placed in the wrong order, the SEs would be wrong. Now, the order no longer matters as matching occurs by name.