generate_hotspot_model: generate_hotspot_model

Description Usage Arguments Value

Description

Uses the parameters returned by fit_hotspot_model to generate rank-scale distributions both of raw values and associated spatial autocorrelation statistics.

Usage

1
2
generate_hotspot_model(n, alpha = 0.1, sd0 = 0.1, ac_type = "moran",
  niters = 1, plot = FALSE)

Arguments

n

Number of observations to generate

alpha

Strength of spatial autocorrelation

sd0

Standard deviation of truncated normal distribution used to model environmental variation (with mean of 1)

ac_type

Type of autocorrelation statistic to use in tests (moran, geary, or getis-org=go)

niters

Number of successive layers of spatial autocorrelation

plot

If TRUE, produces a plot of rank–scale distributions

Value

A matrix of two columns containing sorted and scaled versions of

  1. z = raw values

  2. ac = associated spatial autocorrelation statistics


mpadge/hotspotr documentation built on May 23, 2019, 6:23 a.m.