Skip to content

NA's leading to incorrect 0 total values in abundance / density tables #61

@LHMarshall

Description

@LHMarshall
    While your fingers are deep inside this issue, I want to alert you to an oddity in precision measures for abundance/density of individuals in total study area results of differing `er_method` argument values when analysing one of Arthur's replicates (that contains no detections in one of his strata):

runs below conducted using this version of Distance
Distance * 1.0.5.9001 2022-08-10 [1] Github (DistanceDevelopment/Distance@b386d14)

er_method=1

df <- read.csv(file='E:/troubleshoot/arthur/ds_camargue.csv',sep= ';')
df$Area <- df$Area / 1000^2
df$Effort <- df$Effort / 1000
df$distance <- df$distance / 1000
convu <- convert_units("kilometer", "kilometer", "square kilometer")
dist.bins <- c(0,60,160,360)/1000
groups <- ds(df, key="hn", cutpoints = dist.bins, er_method = 1)

Summary for individuals

Summary statistics:
     Region      Area CoveredArea  Effort     n  k        ER     se.ER     cv.ER mean.size   se.mean
1  camargue 439.19964   252.49824 350.692 63401 22 180.78827 42.345959 0.2342296  960.6212 185.85088
2      gard 188.34741   108.64656 150.898 19178 15 127.09247 41.824256 0.3290852  767.1200 167.91072
3     rhone  13.23249     7.64712  10.621     0  3   0.00000  0.000000 0.0000000    0.0000   0.00000
4 vigueirat  18.55230    10.95480  15.215   332  2  21.82057  7.069714 0.3239930  110.6667  84.69816
5     Total 659.33184   379.74672 527.426 82911 42 157.19930 30.729351 0.1954802  882.0319 138.48758

Abundance:
      Label    Estimate         se        cv          lcl       ucl         df
1  camargue 195650.6827 49143.6563 0.2511806 119881.07706 319309.69 117.699918
2      gard  58983.2393 21821.1954 0.3699559  28503.72831 122055.00  34.838134
3     rhone      0.0000     0.0000 0.0000000           NA        NA         NA
4 vigueirat    997.5001   798.1894 0.8001898     72.46542  13730.78   2.362988
5     Total 255631.4221     0.0000 0.0000000      0.00000      0.00   0.000000

Density:
      Label  Estimate        se        cv        lcl      ucl         df
1  camargue 445.47095 111.89366 0.2511806 272.953493 727.0263 117.699918
2      gard 313.16194 115.85610 0.3699559 151.335919 648.0312  34.838134
3     rhone   0.00000   0.00000 0.0000000         NA       NA         NA
4 vigueirat  53.76693  43.02375 0.8001898   3.906008 740.1120   2.362988
5     Total 387.71284   0.00000 0.0000000   0.000000   0.0000   0.000000

er_method=2

groups <- ds(df, key="hn", cutpoints = dist.bins, er_method = 2)
Summary for individuals

Summary statistics:
     Region      Area CoveredArea  Effort     n  k        ER     se.ER     cv.ER mean.size   se.mean
1  camargue 439.19964   252.49824 350.692 63401 22 180.78827 42.345959 0.2342296  960.6212 185.85088
2      gard 188.34741   108.64656 150.898 19178 15 127.09247 41.824256 0.3290852  767.1200 167.91072
3     rhone  13.23249     7.64712  10.621     0  3   0.00000  0.000000 0.0000000    0.0000   0.00000
4 vigueirat  18.55230    10.95480  15.215   332  2  21.82057  7.069714 0.3239930  110.6667  84.69816
5     Total 659.33184   379.74672 527.426 82911 42 157.19930 30.729351 0.1954802  882.0319 138.48758

Abundance:
      Label    Estimate         se        cv          lcl      ucl        df
1  camargue 195650.6827 49978.7900 0.2554491 117034.46749 327076.2 29.469070
2      gard  58983.2393 20320.3754 0.3445110  29078.93897 119640.6 16.792117
3     rhone      0.0000     0.0000 0.0000000      0.00000      0.0  0.000000
4 vigueirat    997.5001   338.8011 0.3396502     59.21283  16803.9  1.207644
5     Total 255631.4221 56178.3864 0.2197632 165027.69422 395978.5 44.244253

Density:
      Label  Estimate        se        cv        lcl      ucl        df
1  camargue 445.47095 113.79515 0.2554491 266.472137 744.7096 29.469070
2      gard 313.16194 107.88774 0.3445110 154.389907 635.2125 16.792117
3     rhone   0.00000   0.00000 0.0000000   0.000000   0.0000  0.000000
4 vigueirat  53.76693  18.26195 0.3396502   3.191671 905.7585  1.207644
5     Total 387.71284  85.20503 0.2197632 250.295352 600.5755 44.244253

Originally posted by @erex in #52 (comment)

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions