Skip to content

squidgroup/MS_samplingbiases_autocorrelation

Repository files navigation

Code for Analysis

This code was used for the analysis of the paper:

Denis et al. (2025) Avoiding misleading estimates of among-individual variance caused by non-random sampling of individuals in a changeable environment. Methods Ecol. Evol.

Getting Started

To reproduce the analyses, follow these steps:

  1. Install R and Rtools
  1. Set up the reproducible environment

Install the {renv} package (if not already installed)

install.packages("renv")

Then from the root of this project:

renv::restore()

This will install all required package dependencies as specified in the renv.lock file.

  1. Run the analysis

Execute the main workflow by running:

source("run.R")

The pipeline is managed with the {targets} package. This ensures analyses are fully reproducible and results are built following declared dependencies.

Notes

  • Ensure your working directory is set to the root of the project before running scripts.
  • All package versions are pinned via {renv} to guarantee reproducibility.

About

No description, website, or topics provided.

Resources

License

Unknown, MIT licenses found

Licenses found

Unknown
LICENSE
MIT
LICENSE.md

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published