Setup

Copy the code below to install and load the packages needed for the exercise.

install.packages("devtools")
library(devtools)

install_github(repo = "azizka/sampbias")
library(sampbias)

Exercise

You can find potentially useful R functions for each assignment in the brackets. Get help for all functions with ?FUNCTIONNAME.

  1. Load the example distribution data from mammals on Borneo (“borneo_mammals.csv”). (read.csv)
  2. Run sampbias with the default settings. (SamplingBias)
  3. Look at the run summary and visualize the results. How informative are the results? (par, plot)
  4. Explore ?SamplingBias and try to change the relevant arguments to improve the results. Summarize and visualize again.
  5. Have a look at https://github.com/azizka/sampbias/wiki for a detailed description and at https://azizka.shinyapps.io/sampbias/ for a graphical user interface app.