Description Usage Arguments Value
View source: R/fitstats_optim.R
I based this function on "fitstats()" from https://github.com/rbchan/unmarked/blob/master/R/boot.R It's a function returning three goodness-of-fit statistics - sum-of-squares, Chi-squared, and the Freeman-Tukey test-statistic - calculated using my optim estimates rather than a model fit in "unmarked".
1 | fitstats_optim(optim_out, n_obs, y_obs = NA, W, sampling_method)
|
n_obs |
vector of observations at each site & replicate |
y_obs |
matrix of the number of observations in each distance category (from formatted unmarked data). Only used if sampling_method = "distance" |
W |
transect half-width (in meters) |
sampling_method |
either "pointcount" or "distance" |
out |
fit from optim |
vector of 3 fit statistics
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.