checkRates: Evaluate whether potential curve parameters are feasible...

Description Usage Arguments Value Examples

Description

Note that parallelization is supported to expedite evaluation; see examples

Usage

1
2
3
checkRates(rdist, dists = NULL, prob = seq(0.1, 1, len = 10),
  rate = exp(seq(log(0.01), log(10), len = 10)), skew = c(0.2), shift = 0,
  verbose = T, plot = T)

Arguments

rdist

raster* object of distances to the range edge (output from rangeDist

dists

frequency table of unique distance values (output from running freq on the rdist object). If NULL, it will be created within the function but can also be supplied here to speed up processing multiple logistic parameters

prob

vector of "probability inside" values to consider

rate

vector of rate values to consider

skew

vector of skew values to consider

shift

vector of shift values to consider

verbose

logical indicating whether to print verbose messages

plot

logical indicating whether to draw a plot of desired probability vs. decay rate.

Value

dataframe of fitted parameters for each parameter combination provided with prob, rate, skew, and shift.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
data(Beamys_hindei_range)
# Generate domain
 domain=raster::raster(xmn=-180, xmx=180, ymn=-90, ymx=90,
 crs="+proj=longlat +ellps=WGS84 +towgs84=0,0,0,0,0,0,0 +no_defs",
 resolution=.1, vals=NULL)
 # registerDoParallel(2) #optionally use to speed up calculation
 # Calculate distance to range
 rdist=rangeDist(range=Beamys_hindei_range,domain=domain,
                 domainkm=1000,mask=FALSE,fact=2,verbose=FALSE)
 dpar=checkRates(rdist,plot=FALSE)
 head(dpar)

bossMaps documentation built on May 2, 2019, 3:57 p.m.