RE: [distance-sampling] Error Message

450 views
Skip to first unread message

Stephen Buckland

unread,
Nov 7, 2015, 5:23:42 AM11/7/15
to Sarah Moore Nicholson, distance-sampling

Sarah, in line transect sampling, ‘effort’ is generally the line length (assuming each line is surveyed just once).  You have given different line lengths for the same line.  E.g. for line 1, you have given lengths of 0.88 and 1.49.  Perhaps the distances have been read in as effort?

 

Steve Buckland

 

From: distance...@googlegroups.com [mailto:distance...@googlegroups.com] On Behalf Of Sarah Moore Nicholson
Sent: 06 November 2015 19:03
To: distance-sampling
Subject: [distance-sampling] Error Message

 

> df_hr <- ds(data, truncation=10, key="hr", adjustment="cos")

Error in checkdata(data, region.table, sample.table, obs.table, formula) : 

  A sample has a non-unique "Effort", check data!

 

#here is an example of our data. As you can see the effort is non-unique for all samples. Samples are transects with each row #being an unique observation. Please Help!

 

> head(data)

  Sample.Label Region.Label  Area Effort distance

1            1            N 22655   2000     0.88

2            1            N 22655   2000     1.49

3            2            N 22655   2000     3.85

4            2            N 22655   2000     0.21

5            2            N 22655   2000     1.06

6            3            N 22655   2000     1.25

 

 A sample has a non-unique "Effort", check data!

 

Thanks for your help...

 

Sarah

 

--
You received this message because you are subscribed to the Google Groups "distance-sampling" group.
To unsubscribe from this group and stop receiving emails from it, send an email to distance-sampl...@googlegroups.com.
To post to this group, send email to distance...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/distance-sampling/27e097f4-5994-41d9-b9d4-a99abb89fc48%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Eric Rexstad

unread,
Nov 7, 2015, 7:21:57 AM11/7/15
to Sarah Moore Nicholson, distance-sampling


Sarah


We haven't seen all of your data, but my interpretation of the error message you received is that one of your transects has more than one lengths recorded for it.  The records you show look fine, but I expect somewhere in your data there is a "Region.Label" "Sample.Label" combination that has multiple efforts entered.  Likely a simple data entry problem to resolve.



From: distance...@googlegroups.com <distance...@googlegroups.com> on behalf of Stephen Buckland <st...@st-andrews.ac.uk>
Sent: 07 November 2015 10:19
To: Sarah Moore Nicholson; distance-sampling
Subject: RE: [distance-sampling] Error Message
 

Sarah Moore Nicholson

unread,
Nov 8, 2015, 1:37:54 PM11/8/15
to distance-sampling, sarah...@gmail.com, st...@st-andrews.ac.uk
Hello Steve,

Yes, I broke the regions apart and when one region ran correctly and the other did not, I double checked my data and sure enough...I had a transect with two different efforts! Thank you for your help.

Sarah
Reply all
Reply to author
Forward
0 new messages