Simulation Data & R scripts for: "Introducing recurrent events analyses to assess species interactions based on camera trap data: a comparison with time-to-first-event approaches"
Authors/Creators
- 1. Department of National Park Monitoring and Animal Management, Bavarian Forest National Park
- 1. Bavarian Forest National Park Germany, Department of National Park Monitoring and Animal Management, Freyunger Str. 2,94481 Grafenau, Germany
- 2. Wildlife Ecology and Wildlife Management, Faculty of Environment and Natural Resources, University of Freiburg, 79106 Freiburg, Germany
- 3. Institute for Forest and Wildlife Management, Inland Norway University of Applied Sciences, Evenstad, 2480 Koppang, Norway
- 4. Faculty of Environmental Sciences and Natural Resource Management, PB 5003, NO-1432 Ås, Norway
- 5. Department of Statistics, Ludwig-Maximilians-Universitat, Munchen, Germany
Description
Files descriptions:
All csv files refer to results from the different models (PAMM, AARs, Linear models, MRPPs) on each iteration of the simulation. One row being one iteration.
"results_perfect_detection.csv" refers to the results from the first simulation part with all the observations.
"results_imperfect_detection.csv" refers to the results from the first simulation part with randomly thinned observations to mimick imperfect detection.
ID_run: identified of the iteration (N: number of sites, D_AB: duration of the effect of A on B, D_BA: duration of the effect of B on A, AB: effect of A on B, BA: effect of B on A, Se: seed number of the iteration).
PAMM30: p-value of the PAMM running on the 30-days survey.
PAMM7: p-value of the PAMM running on the 7-days survey.
AAR1: ratio value for the Avoidance-Attraction-Ratio calculating AB/BA.
AAR2: ratio value for the Avoidance-Attraction-Ratio calculating BAB/BB.
Harmsen_P: p-value from the linear model with interaction Species1*Species2 from Harmsen et al. (2009).
Niedballa_P: p-value from the linear model comparing AB to BA (Niedballa et al. 2021).
Karanth_permA: rank of the observed interval duration median (AB and BA undifferenciated) compared to the randomized median distribution, when permuting on species A (Karanth et al. 2017).
MurphyAB_permA: rank of the observed AB interval duration median compared to the randomized median distribution, when permuting on species A (Murphy et al. 2021).
MurphyBA_permA: rank of the observed BA interval duration median compared to the randomized median distribution, when permuting on species A (Murphy et al. 2021).
Karanth_permB: rank of the observed interval duration median (AB and BA undifferenciated) compared to the randomized median distribution, when permuting on species B (Karanth et al. 2017).
MurphyAB_permB: rank of the observed AB interval duration median compared to the randomized median distribution, when permuting on species B (Murphy et al. 2021).
MurphyBA_permB: rank of the observed BA interval duration median compared to the randomized median distribution, when permuting on species B (Murphy et al. 2021).
"results_int_dir_perf_det.csv" refers to the results from the second simulation part, with all the observations.
"results_int_dir_imperf_det.csv" refers to the results from the second simulation part, with randomly thinned observations to mimick imperfect detection.
ID_run: identified of the iteration (N: number of sites, D_AB: duration of the effect of A on B, D_BA: duration of the effect of B on A, AB: effect of A on B, BA: effect of B on A, Se: seed number of the iteration).
p_pamm7_AB: p-value of the PAMM running on the 7-days survey testing for the effect of A on B.
p_pamm7_AB: p-value of the PAMM running on the 7-days survey testing for the effect of B on A.
AAR1: ratio value for the Avoidance-Attraction-Ratio calculating AB/BA.
AAR2_BAB: ratio value for the Avoidance-Attraction-Ratio calculating BAB/BB.
AAR2_ABA: ratio value for the Avoidance-Attraction-Ratio calculating ABA/AA.
Harmsen_P: p-value from the linear model with interaction Species1*Species2 from Harmsen et al. (2009).
Niedballa_P: p-value from the linear model comparing AB to BA (Niedballa et al. 2021).
Karanth_permA: rank of the observed interval duration median (AB and BA undifferenciated) compared to the randomized median distribution, when permuting on species A (Karanth et al. 2017).
MurphyAB_permA: rank of the observed AB interval duration median compared to the randomized median distribution, when permuting on species A (Murphy et al. 2021).
MurphyBA_permA: rank of the observed BA interval duration median compared to the randomized median distribution, when permuting on species A (Murphy et al. 2021).
Karanth_permB: rank of the observed interval duration median (AB and BA undifferenciated) compared to the randomized median distribution, when permuting on species B (Karanth et al. 2017).
MurphyAB_permB: rank of the observed AB interval duration median compared to the randomized median distribution, when permuting on species B (Murphy et al. 2021).
MurphyBA_permB: rank of the observed BA interval duration median compared to the randomized median distribution, when permuting on species B (Murphy et al. 2021).
Scripts files description:
1_Functions: R script containing the functions:
- MRPP from Karanth et al. (2017) adapted here for time efficiency.
- MRPP from Murphy et al. (2021) adapted here for time efficiency.
- Version of the ct_to_recurrent() function from the recurrent package adapted to process parallized on the simulation datasets.
- The simulation() function used to simulate two species observations with reciprocal effect on each other.
2_Simulations: R script containing the parameters definitions for all iterations (for the two parts of the simulations), the simulation paralellization and the random thinning mimicking imperfect detection.
3_Approaches comparison: R script containing the fit of the different models tested on the simulated data.
3_1_Real data comparison: R script containing the fit of the different models tested on the real data example from Murphy et al. 2021.
4_Graphs: R script containing the code for plotting results from the simulation part and appendices.
5_1_Appendix - Check for similarity between codes for Karanth et al 2017 method: R script containing Karanth et al. (2017) and Murphy et al. (2021) codes lines and the adapted version for time-efficiency matter and a comparison to verify similarity of results.
5_2_Appendix - Multi-response procedure permutation difference: R script containing R code to test for difference of the MRPPs approaches according to the species on which permutation are done.
Files
results_imperfect_detection.csv
Files
(2.3 MB)
| Name | Size | Download all |
|---|---|---|
|
md5:c77e0272593615c7706eb4a9ec3c9626
|
21.5 kB | Download |
|
md5:35ed98b0cde6c964942a387feded7695
|
9.9 kB | Download |
|
md5:303991e0d60766ad026ef53cf008763e
|
21.1 kB | Download |
|
md5:e53b4f65fa628cfea6d654a768939eee
|
16.5 kB | Download |
|
md5:dd4b3220f9ea3085e5d80ceae934cc11
|
29.8 kB | Download |
|
md5:6d14740581436544238af0f00153765e
|
5.1 kB | Download |
|
md5:c843825161a25839f0dabca274cb5df8
|
17.2 kB | Download |
|
md5:37ab00f96ee38556a601ce0934aa826e
|
892.3 kB | Preview Download |
|
md5:bcef8b194d25a6065a95e38702f3d346
|
64.8 kB | Preview Download |
|
md5:96da639bfc8ec23b57ce9b8f89a4052c
|
63.0 kB | Preview Download |
|
md5:631d700f9d20b61ac1161ff726711e83
|
1.2 MB | Preview Download |