Hi all, I have a number of detection histories produced in camtrapR from camera trapping data and am interested in calculating cumulative detection probability from occasion 1 to occasion
n. I know I can do this in a long-winded way by truncating each detection history to 1 occasion, then 2 occasions, 3 occasions, etc., but this will take a considerable amount of time with 9 detection histories and 50-60 occasions in most of those, and increases the risk of simply misplacing information with all the data frames that will be produced
I'm hoping that there might be a way to set up a loop so that I can automate this process to fill in a blank matrix, preferably with p and upper and lower 95% confidence intervals (i.e. a 3-row matrix, with varying columns depending on the detection history used). I have no real experience working with loops, but perhaps somebody here has experience doing just that and might be able to help out. I think a for loop is the way I need to go about doing this, but I don't know how I would set up the loop to iterate cumulative occasions from 1 to n. Any ideas?
Thanks,
Jarrad