move.from.preds.stepwise: A resource selection simulator

Description Usage Arguments Value Examples

Description

This function generates a dataset usable in resource selection functions

Usage

1
2
3
4
5
move.from.preds.stepwise(formu, pop_size = pop.size, steps_ = steps,
  non_steps = non.steps, base_, n_preds, n_preds_original,
  gridsize = sqrt(nrow(predictors)), predictors_, ind_sd = NA,
  dist_effect = NA, stepwise = F, absence_sampling = NA,
  param_list = list(NA))

Arguments

formu

formula without an response such as ~ x1 + x2

pop_size

integer defining the number of individuals

steps_

number of relocations/steps

non_steps

number of absences

base_

vector of numerics as the parameters coefficients

n_preds

integer defining total number of predictors, quadratic conditions and interactions

n_preds_original

integer defining the number of predictors

gridsize

integer determining size of the map

predictors_

matrix of predictors

ind_sd

integer as the standard deviation of the normal distribution with a mean of 1 that is multiplied with the parameter coefficients

dist_effect

numeric defining the impact of the distance on relocation as plogis(1/dist^dist_effect)

stepwise

logical, if relocations are only dependent of the set of predictors or also dependent of the location of the last step

absence_sampling

default is "availability" , meaning all cells are used as availability background. "absence" samples only cells where no presence has been recorded.

pred_choice

vector of integers defining the set of predictors originally selected

Value

returns a dataset usable in resource selection functions and a map suitable for plotting with ggplot2

Examples

1

aMilles/rsfsim documentation built on May 15, 2019, 4:20 a.m.