-
Notifications
You must be signed in to change notification settings - Fork 4
Closed
Description
Prompted by this question to the list 04Oct22, I replicate the problem with data set LTExercise distributed with the package. Essence of problem: covered area for each transect is computed as constant even though transect lengths differ.
I looked at one of the "tame" data sets that ships with the Distance package, LTExercise: line transect data with 12 replicate transects, true density 79.8 animals per km^2, just to have a look at some results.
library(Distance)
data(LTExercise)
conv <- convert_units("meter", "kilometer", "square kilometer")
lt_hn <- ds(LTExercise, key="hn", convert_units = conv)
summary(lt_hn)
Estimate SE CV
Average p 0.3491863 0.02160948 0.06188525
N in covered region 300.6991117 30.11199438 0.10013995
Summary statistics:
Region Area CoveredArea Effort n k ER se.ER cv.ER
1 Default 1 3.4368 48 105 12 2.1875 0.3169604 0.1448962
Density estimate for the study area:
Density:
Label Estimate se cv lcl ucl df
1 Total 87.49392 13.78541 0.1575585 62.70329 122.0859 15.32522
Density estimates by transect
> lt_hn$dht$individuals$bysample
Region Sample Effort Sample.Area Area n Nhat Nchat Dhat
1 Default Line 1 5 3.4368 1 14 11.665857 40.093215 11.665857
2 Default Line 10 7 3.4368 1 23 19.165336 65.867424 19.165336
3 Default Line 11 3 3.4368 1 0 0.000000 0.000000 0.000000
4 Default Line 12 4 3.4368 1 5 4.166377 14.319005 4.166377
5 Default Line 2 2 3.4368 1 3 2.499826 8.591403 2.499826
6 Default Line 3 6 3.4368 1 8 6.666204 22.910409 6.666204
7 Default Line 4 4 3.4368 1 9 7.499479 25.774210 7.499479
8 Default Line 5 3 3.4368 1 3 2.499826 8.591403 2.499826
9 Default Line 6 1 3.4368 1 4 3.333102 11.455204 3.333102
10 Default Line 7 4 3.4368 1 11 9.166030 31.501812 9.166030
11 Default Line 8 4 3.4368 1 8 6.666204 22.910409 6.666204
12 Default Line 9 5 3.4368 1 17 14.165683 48.684618 14.165683
Note that for the estimates by transect, the Sample.Area is reported to be the same, even though the transects differ in length. I think this might be the source of the discrepancy you describe.
Reactions are currently unavailable