p_values: p_values

Description Usage Arguments Value

Description

Tests observed data (z) against a series of neutral models

Usage

1
2
p_values(z, nbs, wts, sd0 = 0.1, alpha = 0.1, niters = 1, ntests = 1000,
  ac_type = "moran", log_scale = FALSE, plot = FALSE, verbose = FALSE)

Arguments

z

Vector of observed values to be tested

nbs

An spdep nb object listing all neighbours of each point

wts

Weighting factors for each neighbour; must have same length as nbs. Uniform weights used if not given.

sd0

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

alpha

Strength of spatial autocorrelation

niters

Number of successive layers of spatial autocorrelation

ntests

Number of tests to run, with statistics calculated from the mean of ntests

ac_type

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

log_scale

If TRUE, raw hotspot values are log-transformed

plot

If TRUE, plot mean and observed distributions of z and associated autocorrelation statistics

verbose

If TRUE, dump progress details to screen

Value

Nothing (dumps statistics to screen)


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