Introductory workshop practical exercises

Here you can find the exercises for the practical sessions during the course. All content will remain here on the Distance website for future consultation.

Practicals

Practicals are provided in RMarkdown (.Rmd) and PDF format. RMarkdown can be opened in RStudio and the file “knitted” into HTML or PDF.

Note that the practicals are designed to be run sequentially, files generated from previous analyses are loaded and used in subsequent analyses.

Number Description Markdown PDF
1 Line transect detection functions by hand Rmd PDF
2 Line transect estimation using R Rmd PDF
3 Assessing line transect detection functions Rmd PDF
4 Variance estimation for systematic designs Rmd PDF
5 Point transect exercises Rmd PDF
6 Distance Sampling Survey Design using R Rmd PDF
7 Analysis of stratified data Rmd PDF
8 Covariates in the detection function Rmd PDF
9 Analysis with multipliers Rmd PDF
Demo Group size covariate Rmd HTML
Demo Export Distance for Windows data Rmd HTML

Data sets

Data sets are incorporated as RData files in the R package dsdata. In addition, data for practicals 2, 3, 4, 5, and 9 are also included as comma-separated values (CSV files) in the dsdata package.

Problems

If you run into a problem running any of these examples, please report an issue on this GitHub repository. Or contact the workshop instructors.