fhui28 / CBFM

Spatio-temporal joint species distribution modeling using community-level basis functions
13 stars 2 forks source link

error when fitting cbfms with zero-truncated families #16

Closed chrishaak closed 2 years ago

chrishaak commented 2 years ago

Attempting to fit CBFMs with families "ztnb2" and "ztpoisson" return the following errors (respectively)

Error in eval(parse(text = fname)) : object 'NBI' not found"

"Error in eval(parse(text = fname)) : object 'PO' not found"

missing dependency? Thanks!

fhui28 commented 2 years ago

Thanks and sorry about that!

The problem appears to be due an implicit dependency on gamlss, which I was not aware of when using gamlss.tr::trun. Anyway, I have updated CBFM [ztnb2() and ztpoisson() to be precise] the package to hopefully remove this now.

Fingers crossed, and please let me know if the issue persists.

Yous non-significantly, FH