Closed AidanMcDonald closed 1 year ago
You can fit a Gamma function with covariates using the sparrow data. But it issues a bunch of warnings, and the plot makes clear there are issues. Nonetheless, we should fix or prohibit this use case.
sparrow.dfunc <- dfuncEstim(formula=dist~shrub, detectionData=sparrowDetectionData, siteData=sparrowSiteData, likelihood="Gamma", w.hi=100)
I've added an error message in dfuncEstim
for the time being, assuming we add this functionality later. If there are covariates and the likelihood is Gamma, the routine will error out.
Covariates are allowed in Gamma distance function as of version 2.2.0
Gamma function isn't working when covariates are included.