Returns the table of fitted candidates from a sweep_models() result,
sorted by AIC (lowest first).
Arguments
- x
A
dsfit_sweepobject fromsweep_models().- converged_only
Logical.
TRUE(default) drops candidates that failed to fit or did not converge.
Value
A tibble with one row per candidate and columns:
model_id,key,adjustment,order,formulaThe candidate, as in
model_set().convergedTRUEif the fit succeeded.n_parNumber of estimated parameters.
aic,delta_aicAIC, and its difference from the lowest AIC.
p,p_se,p_cvAverage detection probability over the searched strip, its standard error, and its coefficient of variation.
eswEffective strip half-width:
ptimes the width of the searched strip (truncationminusleft).cvm_pCramer-von Mises goodness-of-fit p-value.
NAfor binned distances.chisq_pChi-square goodness-of-fit p-value. The test to read for binned distances.
Columns describing a fit are NA for a candidate that failed.
Examples
set.seed(1)
d <- data.frame(object = 1:150, distance = abs(rnorm(150, 0, 100)))
d <- d[d$distance < 300, ]
selection_table(sweep_models(d, truncation = 300, quiet = TRUE))
#> # A tibble: 2 × 15
#> model_id key adjustment order formula converged n_par aic delta_aic p
#> <chr> <chr> <chr> <int> <chr> <lgl> <dbl> <dbl> <dbl> <dbl>
#> 1 hn hn NA NA ~1 TRUE 1 1570. 0 0.378
#> 2 hr hr NA NA ~1 TRUE 2 1574. 4.47 0.388
#> # ℹ 5 more variables: p_se <dbl>, p_cv <dbl>, esw <dbl>, cvm_p <dbl>,
#> # chisq_p <dbl>