tmcd82070 / Rdistance

An R package for simple, regression-like, distance-based analyses
8 stars 3 forks source link

Covariates in Gamma function #32

Closed AidanMcDonald closed 1 year ago

AidanMcDonald commented 7 years ago

Gamma function isn't working when covariates are included.

jcarlis3 commented 7 years 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)

image

image

jcarlis3 commented 7 years ago

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.

image

tmcd82070 commented 1 year ago

Covariates are allowed in Gamma distance function as of version 2.2.0