CalcFlockSizeFit: Calculate the fit of the simulated flock size distribution to...

Description Usage Arguments Details Value

Description

Calculate fit between the simulated flock size distribution to the observed flock size distribution based as 1 minus the least squares difference.

Usage

1
CalcFlockSizeFit(sim, obs, var, measure)

Arguments

sim

tibble A vector of flock sizes from the simulation

obs

tibble A tibble with a columns identifying the species and a column with each flock observation from the simulation.

var

character Name of the varible to compare. Must be identical in the both sim and obs.

measure

character Either LS (least sq.) or KS (Kolmogorov-Smirnov)

Details

The fit is measured on the proportions of the flock sizes falling into each bin of 10 The fit is in both cases measured over the entire season.

Value

numeric The calculated fit.


LDalby/ralmass documentation built on May 8, 2019, 5:48 p.m.