Stability is defined as the width of the 5th-95th percentile range, over n.reps replications of median estimates associated with sampling events. The resulting width is scaled by the population median and returned as a fraction.

samplingStability(
mu,
r,
n.set = c(0.01, 0.1, 0.5, 1, 2),
n.reps = 10,
p.id = "pID"
)

## Arguments

mu

map unit polygons, must have polygon ID, must be in CRS with units of meters

r

RasterLayer

n.set

set of sampling density values to try

n.reps

number of replications

p.id

polygon ID column name

## Value

data.frame with median stability values as percentage of population median, range: [0,1]

D.E. Beaudette