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 | |
---|---|---|---|
1 | Line transect detection functions by hand | Rmd | |
2 | Line transect estimation using R | Rmd | |
3 | Assessing line transect detection functions | Rmd | |
4 | Variance estimation for systematic designs | Rmd | |
5 | Point transect exercises | Rmd | |
6 | Distance Sampling Survey Design using R | Rmd | |
7 | Analysis of stratified data | Rmd | |
8 | Covariates in the detection function | Rmd | |
9 | Analysis with multipliers | Rmd | |
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.