Skip to contents

Wraps an admitted observation law with the source-specific fixed-effects formula that describes recording effort or observation bias. The ecological formula remains in gllvmTMB(); observation contributes columns only on rows from this declared source. It is therefore not a second ecological process and does not turn relative intensity into abundance, occupancy, or detectability.

Usage

isdm_source(family, observation)

Arguments

family

An admitted family law, currently poisson() with its log link or binomial() with link = "cloglog".

observation

A one-sided formula for source-specific observation effects, for example ~ access + popdens or ~ observer + method. Do not add 0 + merely to make source formulas identifiable: the wrapper keeps the ecological design first and automatically reference-codes any aliased source-observation columns.

Value

An internal source declaration accepted by isdm_sources().

Examples

isdm_source(poisson(link = "log"), observation = ~ access + popdens)
#> $family
#> 
#> Family: poisson 
#> Link function: log 
#> 
#> 
#> $observation
#> ~access + popdens
#> <environment: 0x558da9327d38>
#> 
#> attr(,"class")
#> [1] "gllvmTMB_isdm_source"