get_detection: Obtains estimates for detection parameters through logistic...

Description Usage Arguments Value Examples

View source: R/get_detection.R

Description

Estimates logistic regression coefficients from detection data.

Usage

1
get_detection(formula, data, varmethod = "Bootstrap")

Arguments

formula

is an R linear model formula specifying binary detection as the response variable as well as covariates associated with detection.

data

is the data set with the response column of detection and the covariates to be used in the logistic regression, and the spatial coordinates for all of the sites.

varmethod

is the method to obtain the variance matrix for the detection probabilities, either "Delta" or "Bootstrap".

Value

a list with

Examples

1
2
df <- data.frame(y = rbinom(30, 1, 0.7), x = rnorm(30, 4, 0.4))
get_detection(formula = y ~ x, data = df)

highamm/FPBK-with-Detection documentation built on Jan. 2, 2022, 6:35 a.m.