LP_TL_est {Petersen} | R Documentation |
Estimate abundance after the LP_TL (tag loss) conditional likelihood fit.
Description
This will take a previous fit and return estimates of abundance. The population abundance is estimated using a Horvitz-Thompson type estimator based only on p1 and the user can request abundance estimates for sub-sets of the population.
Usage
LP_TL_est(LP_TL_fit, N_hat = ~1, conf_level = 0.95, trace = FALSE)
Arguments
LP_TL_fit |
A result of an LP_TL_fit() call. |
N_hat |
A formula requesting which abundance estimates should be formed. The formula are
expanded against the data frame to determine which records form part of the abundance estimate.
The formula is evaluated against the Some familiarity on how In addition to the variables in the |
conf_level |
The expected coverage for confidence intervals on N. |
trace |
If trace flag is set in call when estimating functions |
Value
An list object with abundance estimates and other information with the following elements
-
summary Data frame with abundance estimates, their SE, and CIs as requested
-
detail List with many components, including the rawdata, model fitting information, etc
-
datetime Date and time the estimation was done from the fit.
Author(s)
Schwarz, C. J. cschwarz.stat.sfu.ca@gmail.com.
Examples
data(data_kokanee_tagloss)
fit <- Petersen::LP_TL_fit(data=data_kokanee_tagloss, p_model=~1, rho_model=~1, dt_type="notD")
fit$summary
est <- Petersen::LP_TL_est(fit, N_hat=~1)
est$summary