Description Usage Arguments Value Examples
View source: R/get_detection.R
Estimates logistic regression coefficients from detection data.
1 | get_detection(formula, data, varmethod = "Bootstrap")
|
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". |
a list with
Fitted detection coefficients
The asymptotic variance-covariance matrix of the fitted regression coefficients
the formula used to fit the logistic regression model
A list of bootstrapped regression coefficients used to obtain a covariance matrix for detection estimates
The method used to get the variance covariance matrix for detection probabilities.
1 2 | df <- data.frame(y = rbinom(30, 1, 0.7), x = rnorm(30, 4, 0.4))
get_detection(formula = y ~ x, data = df)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.