Introduction

This RMarkdown file will be used to implement a meta-regression on the coefficients of preferred predator-prey co-abundance models. The goal of this exercise is to examine the effect of observed variables mediating predator-prey relationships and deepen our understanding of possible unmeasured variables mediating observed relationships.

Before we begin the meta-regressions, it will be important to examine the summary statistics of the posterior effect sizes from our key variables: HFP & FLII & Elevation & Community_detections & Species_Interaction & Active_cams from all 64 preferred predator-prey co-abundance models.

Regressions

These regressions are using all posterior effect sizes from the 64 for the key covariates described above. Only the results from the subordinate species are included in these regressions to ensure a fair comparison with SIV because it is only present in the subordinate species’ co-abundance model. The co-abundance model results have been split into four groupings: supported_bottom-up, supported_top-down, unsupported_bottom-up, unsupported_top-down for a total of four linear (i.e. Gaussian distribution) mixed effect models with a random effect per subordinate species. Each regression’s response variable is the posterior effect size, and each effect size is weighted by 1/standard deviation of the posterior effect size. The predictor variable is a categorical variable denoting the variable of interest: Community_detections, Elevation, FLII, HFP, SIV.

Before we create the graph, we can display the values produced in the regression for each of the variables.

For each level of support (i.e. unsupported, bottom-up, top-down), documenting sample sizes is important!

For reference, this is what variable each letter represents on the plot:

I have also re-organized the exact same data from the previous forest plot, but used the facet_wrap to make one plot per variable included. The empty space in the bottom right section would be a good place to add the custom label. The color pattern follows the same pattern as the previous plot. The letter A) refers to , B) refers to , C) refers to , and D) refers to .

Below is a simplified version of the forest plot, where supported and unsupported models have been combined to examine predator and prey groupings independently. To ensure the results are not skewed by poor models, 18 models with a poor goodness of fit or SIV parameters that did not converge (i.e., unsupported_3) have been removed from this analysis.

Here are the numerical results for predators:

Here are the numerical results for prey:

Save everything!

Its going here in the GitHub Repository here: figures/step5_output_forest_plot/