calc_Danz2012_abruptness_2D: Estimation of the abruptness of the change of outcome z along...

Description Usage Arguments Details Value References See Also

Description

Implementation of the methods by Danz et al. (2012).

Usage

1
2
calc_Danz2012_abruptness_2D(i, doms, use_dims, x1d, z1d, x2d, z2d,
  seed = NULL, include_lm = FALSE)

Arguments

i

An integer value. The transect ID (only used for informative warning messages).

doms

A named list of named options as a list that defines models which are applied to the data. See details.

use_dims

A logical vector of length 2. Value of first/second element indicates if 1/2-dimensional models are estimated.

x1d

A numeric vector. The 1-dimensional predictor along the ecotone transect from left-right. The length of x has to correspond to the ecotone transect. For instance, distance along the transect.

z1d

A numeric vector. The 1-dimensional outcome along the ecotone transect, e.g., vegetation density.

x2d

A matrix or RasterLayer. The 2-dimensional predictor representing the ecotone transect band.

z2d

A matrix or RasterLayer. The 2-dimensional outcome representing the ecotone transect band.

seed

An integer value, NULL, or NA: NA will do nothing; the other two are passed to set.seed.

include_lm

A logical value. If TRUE, then a linear model is added to doms.

Details

doms contains the named items tag: descriptive character string of the model; cond: character string that evaluates to a logical value expressing under which conditions the model should be calculated; fun: model function as character string; family: error distribution function as character string (see family); link: model link function as character string (see make.link); random: a character string representing the random effects if any (see glmer for calls to m_glmm_lme4, respectively glmmPQL for calls to m_glmm_PQL); correlation: NULL or a character string representing the residual correlation structure for m_glmm_PQL (see glmmPQL); ytrans: optional - a function applied to outcome z before model fitting; ytransinv: optional - the backtransformation of ytrans applied after model fitting.

Value

A named list with three items ‘fits’, ‘plot_preds’, and ‘plot_data’

References

Danz, N. P., L. E. Frelich, P. B. Reich, and G. J. Niemi. 2012. Do vegetation boundaries display smooth or abrupt spatial transitions along environmental gradients? Evidence from the prairie-forest biome boundary of historic Minnesota, USA. Journal of Vegetation Science 24:1129-1140.

See Also

Danz2012JVegSci_2D, and the possible model functions m_glm, m_glmm_lme4, and m_sig


dschlaep/ecotoner documentation built on May 15, 2019, 2:57 p.m.