Closed drnickisaac closed 2 months ago
Heads up @FrancescaMancini does this impact the trends we're sending to the State of Nature? Also @03rcooke, might impact your freshwater trends we discussed the other day.
I suspect the difference in the trends will be neglible. You can close it for me.
Will resolve in pull request #252
There is an error in our calculation of growth rate in occupancy. It's a geometric mean of the difference in occupancy. We have been using the nth root, where
n
is the number of years in the dataset. We should have been usingn-1
, since the growth rate is based on transitions between years.For most applications, the difference is lost completely when reporting the trend to even three significant figures. But it should be corrected. The easiest place to do this is at line 173, to replace:
nyr <- length(years)
withnyr <- length(years) - 1