Closed jcarlis3 closed 6 years ago
Fixed in commit 82b08194aff2ae7487501ec8479b9d942b23e808
We determined that esw in abund objects was not being used anywhere (90% sure) and thus the bug had no effect. But now it is fixed with the following lines.
if(dfunc$pointSurvey){
ans$esw <- sqrt(abund$w^2 * abund$pDetection) # for points
} else {
ans$esw <- abund$pDetection * abund$w # for lines
}
Possible bug in calculating the effective distance (ESW for lines or EDR for points) in abundance estimation routine. See line 333 of function
abundEstim.R
ans$esw <- abund$pDetection * abund$w
Looks correct for line surveys, but not for point surveys, right?If I understand, this
esw
value is just being stored in the returned object (ans
), not used in any calculations of abundance.