Fit two different functions for two strata

Skip to first unread message

Dayron Lopez

Oct 29, 2021, 8:38:39 AM10/29/21
Hello everyone,
I have data for a bird species in a reserve where two main habitat types are found (these are the two strata) and I would like to ask if and how is it possible to fit two different functions for the two habitats.
Do I have to change something in the model definition properties or elesewhere? What?
For another bird species I didn't have this problem because the same function was performing well for both strata but in this case it isn't.

Thanks a lot for your attention

Dayron Lopez 

Eric Rexstad

Oct 29, 2021, 1:53:48 PM10/29/21
to Dayron Lopez,

Yes, it is possible to fit separate detection functions to each of two geographic strata (habitats).  You can demonstrate to yourself using the "minke" data set in the Distance package.  The data are of a stratified survey with a northern and a southern stratum.

minke.trunc <- 1.5
# Create dataset for South
minke.S <- minke[minke$Region.Label=="South", ] # Fit df to south minke.df.S.strat <- ds(minke.S, key="hr", adjustment=NULL,
# Create dataset for South 
minke.N <- minke[minke$Region.Label=="North", ]
# Fit df to south
minke.df.N.strat <- ds(minke.N, key="hr", adjustment=NULL, 

To do the equivalent in Distance for Windows, watch the video and conduct the analysis described in our online training materials here:
In this chapter we introduce more challenging designs and analyses. The study area may be subdivided into smaller regions (strata) and density/abundance estimated within each strata.

From: <> on behalf of Dayron Lopez <>
Sent: 29 October 2021 13:38
To: <>
Subject: [distance-sampling] Fit two different functions for two strata
You received this message because you are subscribed to the Google Groups "distance-sampling" group.
To unsubscribe from this group and stop receiving emails from it, send an email to
To view this discussion on the web visit
Reply all
Reply to author
0 new messages