calcBins: Generates indices for moving window bins

Description Usage Arguments Details Value Author(s) References

Description

Utility function that generates a set of indices for moving window bins targeting an implied dataset of sample size 'n' to support plotting HSI relationships with nest densities and calculating RSF plot index (RPI).

Usage

1
  calcBins(unit.size, n, bin.width)

Arguments

unit.size

Numeric scalar - the number of observations to include in a unit

n

Numeric scalar - the total number of observations in the target sample

bin.width

Numeric scalar - the number of units to include in each moving window bin

Details

This is a utility function that supports various other functions in the WoodpeckerHSI package that relate HSIs with observed nest densities and calculate associated metrics of predictive performance or GOF, i.e., RPI (Wiens et al. 2008).

Value

unitID

Integer vector indicating the unit assignment of each observation; length = n

st

Integer vector indicating the lowest-value unitID to include in each bin; length = bin.width

end

Integer vector indicating the highest-value unitID to include in each bin; length = bin.width

Author(s)

Quresh S. Latif, Rocky Mountain Research Station, U.S. Forest Service

References

Wiens, T. S., B. C. Dale, M. S. Boyce, and G. P. Kershaw. 2008. Three way k-fold cross-validation of resource selection functions. Ecological Modelling 212:244-255.


qureshlatif/WoodpeckerHSI documentation built on May 29, 2019, 7:51 a.m.