• Home
  • Research
  • Publications
  • Teaching
  • Blog
JAMES E PATERSON, PH.D
  • Home
  • Research
  • Publications
  • Teaching
  • Blog

Introduction to occupancy models in R

9/1/2020

 
Picture
In this tutorial, I cover:
1. What occupancy models are useful for
2. Fitting single-season occupancy models with the R package `unmarked`
3. Testing goodness-of-fit for single-season occupancy models

The code (and sample data) from this tutorial are available on GitHub.

Let's get started!
Read More

Goodness-of-fit tests for mark-recapture models in R

5/20/2020

 
Picture
Mark-recapture models are a useful framework to test hypotheses about what drives differences in wildlife survival and detection probability. However, it is important to assess the goodness-of-fit (GOF) for these models before we make inferences.

​What causes lack of fit?
  • assumption violations (more on that below!),
  • model misspecification (e.g. missing important variables), or
  • unmodelled heterogeneity (e.g. some ‘trap happy’ or ‘trap-shy’ animals)

In this tutorial, I cover testing assumptions of the Cormack-Jolly-Seber model using `R2ucare`.
Read MOre

Kernel home ranges constrained by boundaries

3/14/2020

 
Picture
Kernel density estimators are commonly used for estimating the home range of animals (see my previous post on estimating home ranges with kernels).

​But, a common issue is that the kernel contour for an animal extends beyond a boundary the animal cannot cross.

Can we adjust the density estimator and limit kernel contours to not cross boundaries?
The code and data I use in this tutorial are available on my on my GitHub repo.
Read more

Animating tracking data

2/2/2020

 
Picture
One of my favourite ways to visualize wildlife tracking data is to animate paths. Using `ggmap` and `gganimate`, it has never been easier to show-off your hard-earned tracking data with animated maps you can use in presentations, meetings, and at dinner parties.

The code and data I use in this tutorial are available on my on my GitHub repo.
Picture
Read more

Creating capture histories in R

11/7/2019

 
Picture
​Do you do mark-recapture analyses? The required input data are "capture histories": binary strings to describe when animals (or plants) were found in a study. 

For example, a capture history of "101" describes a study where an individual was:

* caught on the first event, 
* not observed on the second event, and
* observed on the third event.

Data from mark-recapture and mark-resight studies are not usually recorded or stored in this format. Let's run through an exercise to reshape this data into capture histories!

Read more

Making kernel home range estimates equal in area to minimum convex polygons

12/5/2018

 
Picture
Kernel density estimators are often used for measuring home ranges and this is useful for measuring interactions between animals and their environment. However, kernels are sensitive to the choice of a smoothing factor (h).

For reptiles, Row & Blouin-Demers (2006) recommended using an h that creates a 95% contour area equal to the 100% minimum convex polygon. I have written two functions in R to do this for any tracking data set.

This post will be helpful if you:
  • Tracked reptiles (or another animal with a low number of relocations) and are quantifying habitat use,
  • Want to make your 95% kernel area equal to the 100% minimum convex polygon for each individual.
Read more

How to calculate home ranges in R: Kernels

11/7/2018

 
Picture
Picture
Picture
Kernel density estimators, which map a utilization distribution, are one of the most popular methods for measuring home ranges. I show how to create kernel home range estimates in R using sample data.

The code and data used are available on my GitHub page. This post builds on my previous post estimating home ranges with minimum convex polygons.
Read More

How to create home ranges in R: minimum convex polygons

4/27/2018

 
Picture
What is a home range?

"that area traversed by the animal during its normal activities of food gathering, mating and caring for young. Occasional sallies outside the area, perhaps exploratory in nature, should not be considered as in part of the home range.” -Burt 1943
  
The most commonly cited definition is vague and does not provide a clear method for estimating the home range. So what should someone wanting to calculate home ranges do?
Read more

Formatting & mapping telemetry data in R

4/11/2018

 
The following is adapted from a workshop I ran at Trent University in January 2018. It is meant to be an introduction to using R to analyze movement patterns and home ranges from telemetry data. I have split the content into several smaller posts. In this first post, I format simulated telemetry data for spatial analyses and map points and paths overtop of Google Earth imagery with the ggmap package.

Code available at my GitHub page.
Read more

    Author

    James Paterson

    Archives

    January 2021
    November 2020
    September 2020
    July 2020
    June 2020
    May 2020
    April 2020
    March 2020
    February 2020
    November 2019
    December 2018
    November 2018
    April 2018

    Categories

    All
    Mark Recapture
    Mark-recapture
    Occupancy
    #rstats
    Spatial Ecology

    RSS Feed

Powered by Create your own unique website with customizable templates.
  • Home
  • Research
  • Publications
  • Teaching
  • Blog