Processing math: 100%
+ - 0:00:00
Notes for current slide
Notes for next slide

Occupancy Modeling Workshop

OTS 2022

Diego J. Lizcano, Ph.D.

SCMAS, Awake-Travel

2022-06-26

1 / 35
2 / 35

Thanks to

Adriana Bravo

Pablo Muñoz

Sofía Rodríguez-Brenes

3 / 35

Get Started

4 / 35

Diego J. Lizcano

5 / 35

Diego J. Lizcano

  • Biologist. Universidad de los Andes, Bogotá-Colombia.
5 / 35

Diego J. Lizcano

  • Biologist. Universidad de los Andes, Bogotá-Colombia.

  • Ph.D. University of Kent, Canterbury, UK.

5 / 35

Diego J. Lizcano

  • Biologist. Universidad de los Andes, Bogotá-Colombia.

  • Ph.D. University of Kent, Canterbury, UK.

  • Ecology and conservation of mammals (Tapirs).

5 / 35

Now You...

6 / 35

In this workshop:

We are going to use

And strongly recommended to use

7 / 35

Ecology

Charles Krebs

8 / 35

Ecology: Study of interactions that determine Distribution and Abundance

Distribution:

Where are they.

Abundance:

How many?.

9 / 35

Ecology: Study of interactions that determine Distribution and Abundance

Distribution:

Where are they.

Abundance:

How many?.

Related to the problem of counting organisms!

9 / 35

Ecology: Study of interactions that determine Distribution and Abundance

Distribution:

Where are they.

Abundance:

How many?.

Related to the problem of counting organisms!

9 / 35

Counting animals is not a trivial problem...

Animals move!

10 / 35

As ecologist: The map of our dreams

Mapa de densidad

at some point, we had to count the kangaroos

11 / 35

Conting Animals

Obtener densidad

Easy for animals that are conspicuous and that group together.

12 / 35

Conting Animals

Obtener densidad

Not so easy if they don't group. Capture - Mark - Recapture. Distance

13 / 35

Conting Animals

Obtener densidad

For some species it is cumbersome, impractical and very expensive.

14 / 35

Relative abundance

An indicator variable of the state of the population

I don't know how many there are, but I do know where there are more and where there are less.

15 / 35

However...

Animals move and hide (camouflage)

16 / 35

Sampling is not infallible

Biologist are not super heroes. We make mistakes!

Detectability and Imperfect detection concept

17 / 35

Detectability depends of

18 / 35

Detectability depends of

1. Sampling conditions (weather, time).

18 / 35

Detectability depends of

1. Sampling conditions (weather, time).

2. The ability of the observer (sensor).

18 / 35

Detectability depends of

1. Sampling conditions (weather, time).

2. The ability of the observer (sensor).

3. The biology of the species being sampled.

18 / 35

Detectability depends of

1. Sampling conditions (weather, time).

2. The ability of the observer (sensor).

3. The biology of the species being sampled.

This error should be considered carefully to avoid bias in abundance estimates.

18 / 35

How the detection error occurs (Guillera‐Arroita 2016)

see ppt

It is an important error that must be considered in the sampling design!!!
19 / 35

Mackenzie et al 2002, 2003 to the rescue

unnoticed...

20 / 35

Book and presence program 2006

Mackenzie book

presence
software

Mackenzie popularizes occupancy (ψ) as a proxy of abundance taking into account detectability (p)

21 / 35

Allows you to set goals and to monitor them over time.

meta

22 / 35

Occupancy

ψ

Detection probability

p

Occupancy is a reflection of other important population parameters such as density.

23 / 35

1. (ψ) is the proportion of the sampled area that is occupied by the species.

2. By visiting the site several times I can be more sure that I detect the species when it is found in that place.

3. Repeated sampling are key.

(ψ) It is influenced by environmental variables (Covariables) such as vegetation cover, altitude, precipitation, etc.

24 / 35

This is what a data table with repeated sampling should look like

visit1 visit2 visit3 visit4
site1 1 0 0 1
site2 0 0 0 0
site3 1 1 0 0
sitex 0 0 0 0
25 / 35

Example calculating ψ and p

Frequentist method (Maximum likelihood)

v 1 v 2 v 3 v 4
s 1 1 0 0 1
s 2 0 0 0 0
s 3 1 1 0 0
s x 0 0 0 0
Detection History
H1ψ × p1(1-p2)(1-p3)p4
H2ψ × (1-p2)(1-p2)(1-p3)(1-p4)p4
H3ψ × p1p2(1-p3)(1-p4)
H4ψ × (1-p2)(1-p2)(1-p3)(1-p4)p4

Histories Combined in a Model:

L(ψ,pH1,...,Hx)=xi=1Pr(Hi)

26 / 35

Example calculating ψ and p

Frequentist method (Maximum likelihood)

v 1 v 2 v 3 v 4
s 1 1 0 0 1
s 2 0 0 0 0
s 3 1 1 0 0
s x 0 0 0 0
Detection History
H1ψ × p1(1-p2)(1-p3)p4
H2ψ × (1-p2)(1-p2)(1-p3)(1-p4)p4
H3ψ × p1p2(1-p3)(1-p4)
H4ψ × (1-p2)(1-p2)(1-p3)(1-p4)p4

Histories Combined in a Model:

L(ψ,pH1,...,Hx)=xi=1Pr(Hi) The model admits incorporating covariates to explain ψ and p

26 / 35

Example calculating ψ and p

Frequentist method (Maximum likelihood)

v 1 v 2 v 3 v 4
s 1 1 0 0 1
s 2 0 0 0 0
s 3 1 1 0 0
s x 0 0 0 0
Detection History
H1ψ × p1(1-p2)(1-p3)p4
H2ψ × (1-p2)(1-p2)(1-p3)(1-p4)p4
H3ψ × p1p2(1-p3)(1-p4)
H4ψ × (1-p2)(1-p2)(1-p3)(1-p4)p4

Histories Combined in a Model:

L(ψ,pH1,...,Hx)=xi=1Pr(Hi) The model admits incorporating covariates to explain ψ and p

26 / 35

Same example calculating ψ and p

Bayesian method

v 1 v 2 v 3 v 4
s 1 1 0 0 1
s 2 0 0 0 0
s 3 1 1 0 0
s x 0 0 0 0

It is important to understand that there are two processes that can be modeled hierarchically

  • The ecological process ($\psi$) follows a Bernoulli distribution.
  • The observation model ($p$) follows a Bernoulli distribution.

The probability of observing the species given that it is present:

p=Pr(yi=1zi=1)

The Occupancy probability: ψ=Pr(zi=1)

27 / 35

A hierarchical (Bayesian) model

Full Occu Bayes

Admits Covariates

28 / 35

Which one should I use? The maximum likelihood or Bayesian?

ML

  • Package unmarked
  • In R
  • Admits "automatic" model selection AIC
  • Problems with many NAs
  • Hesian problem. estimates ok.
  • Difficulty from 1 to 10: 3 if you already know R.

Bayesian

  • BUGS or Stan language, called from R
  • Model selection is not that easy, BIC is not suitable
  • You don't have as many problems with many NAs in the matrix
  • Estimates are more accurate.
  • Difficulty from 1 to 10: 7 if you already know R.
29 / 35

Going Deep

libro
azul

Andy Royle (2008)

Advanced level book with lots of details, formulas, examples and code in R and BUGS language.

30 / 35

Dragon-fly book (2015)

libro
libelula

More recent by Marc Kery

More than 700 pages clearly explaining where the theory comes from, in a tutorial style, starting with a basic level of R to advanced models and their implementation in R and the BUGS language.

31 / 35

Let's do it!

Coding now

  • R level?
  • Objects?, Vectors?
  • DataFrame?
  • Loops?
  • Functions?
32 / 35

Schedule

Coding fast

Day Topic
Tuesday 28 pm Remembering R
R as model tool
Wednesday 29 am Occupancy concept
Intro Occu Static model - unmarked101
Wednesday 29 pm Static Model in deep I- Sim Machalilla
Static Model in deep II- Data in unmarked
Thursday 30 am Questions. Real World Data - Deer
More models
33 / 35

Thanks!

Slides created via the R package xaringan.

Contact: Diego J. Lizcano

34 / 35
35 / 35
2 / 35
Paused

Help

Keyboard shortcuts

, , Pg Up, k Go to previous slide
, , Pg Dn, Space, j Go to next slide
Home Go to first slide
End Go to last slide
Number + Return Go to specific slide
b / m / f Toggle blackout / mirrored / fullscreen mode
c Clone slideshow
p Toggle presenter mode
t Restart the presentation timer
?, h Toggle this help
oTile View: Overview of Slides
Esc Back to slideshow