simulation_scalescape: Simulate a distance-weighted model of landscape effects on an...

View source: R/simulation_scalescape.R

simulation_scalescapeR Documentation

Simulate a distance-weighted model of landscape effects on an environmental response

Description

simulate method for class scalescape.Currently only available for linear models

Usage

simulation_scalescape(
  mod.full,
  mod.reduced,
  new.coef,
  new.range,
  new.sigma = NULL,
  data = NULL,
  nsim = 1
)

Arguments

mod.full

the full (landscape) model upon which to base the simulations

mod.reduced

the reduced (local) model

new.coef

simulated coefficient for the landscape effect

new.range

simulated range parameter (i.e. scale of effect) for the landscape effect

new.sigma

simulated standard deviation. By default, this is extracted from mod.reduced

data

a data frame with local and landscape predictors and response variables. By default, this is extracted from mod.full

nsim

number of simulations (default = 1)

Value

simulation_scalescape returns a data frame of predictor and simulated response variables.


benjaminiuliano/scalescape documentation built on April 4, 2022, 1:51 p.m.