opt_summary: Summary of Goodness-of-fit Statistics

Description Usage Arguments Value

View source: R/opt_summary.R

Description

I based this function on https://github.com/rbchan/unmarked/blob/master/R/boot.R It returns a summary of the 3 fit statistics calculated by comparing fit of observed data (fitstats_optim) to fit of datasets simulated with the model estimates (boot_fitstats).

Usage

1
opt_summary(fit_data, fit_sims)

Arguments

fit_data

output from the fitstats_optim function

fit_sims

output from the boot_fitstats function

Value

data.frame with fit_obs = fit statistic of observed data; "mean(fit_obs - fit_sim)" = mean bias in the fit statistics; "StdDev(fit_obs - fit_sim)" = SD of the bias in fit statistics; "Pr(fit_sim > fit_obs)" = p-value of the fit statistics


philipshirk/nmmsims documentation built on Feb. 26, 2020, 11:27 a.m.