intercept.only: intercept.only - Detect intercept-only distance function

View source: R/intercept.only.R

intercept.onlyR Documentation

intercept.only - Detect intercept-only distance function

Description

Utility function to detect whether a distance function has covariates beyond the intercept. If the model contains an intercept-only, effective distance is constant across detections and short-cuts can be implemented in code.

Usage

intercept.only(object)

Arguments

object

An Rdistance model frame or fitted distance function, normally produced by a call to dfuncEstim.

Value

TRUE if object contains an intercept-only. FALSE if object contains at least one detection-level or transect-level covariate in the detection function.


tmcd82070/Rdistance documentation built on April 13, 2025, 1:38 p.m.