summarize_ds_models: Make a table of summary statistics for detection function...

View source: R/summarize_ds_models.R

summarize_ds_modelsR Documentation

Make a table of summary statistics for detection function models

Description

Provide a summary table of useful information about fitted detection functions. This can be useful when paired with knitr's kable function. By default models are sorted by AIC and will therefore not allow models with different truncations and distance binning.

Usage

summarize_ds_models(..., sort = "AIC", output = "latex", delta_only = TRUE)

Arguments

...

models to be summarised

sort

column to sort by (default "AIC")

output

should the output be given in "latex" compatible format or as "plain" text?

delta_only

only output AIC differences (default TRUE)

Details

Note that the column names are in LaTeX format, so if you plan to manipulate the resulting data.frame in R, you may wish to rename the columns for ease of access.

Author(s)

David L Miller

Examples

## Not run: 
# fit some models to the golf tee data
library(Distance)
data(book.tee.data)
tee.data <- subset(book.tee.data$book.tee.dataframe, observer==1)
model_hn <- ds(tee.data,4)
model_hr <- ds(tee.data,4, key="hr")
summarize_ds_models(model_hr, model_hn, output="plain")

## End(Not run)

Distance documentation built on Oct. 24, 2024, 5:08 p.m.