Learn R Programming

Distance (version 1.0.9)

summarize_ds_models: 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)

Author

David L Miller

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.

Examples

Run this code
if (FALSE) {
# 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")
}

Run the code above in your browser using DataLab