fhui28 / CBFM

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

Adding zero inflation where probabilities of zero inflation can be affected by covariates #25

Closed fhui28 closed 2 years ago

fhui28 commented 2 years ago

Enough said, but do need to think about API

fhui28 commented 2 years ago

A longer term enhancement will be for them to "share" BF and BF coefficients, but this needs some thought as to how this can be done...

fhui28 commented 2 years ago

CBFM can now handle zero-inflated Poisson and negative binomial distributions where the probability of zero-inflation can depend on covariates, including smoothers [but not FRK-type basis functions]. This is done through the ziformula argument, with changes made elsewhere as well.

For now, there is no plan to allow FRK-type basis functions in modeling the probability of zero-inflation. Space and time can be handled "simply" by smoothers available from mgcv, and just done at a species-specific level.