morancr.stat: Constant-risk Moran's I statistic

View source: R/morancr.stat.R

morancr.statR Documentation

Constant-risk Moran's I statistic

Description

morancr.stat computes the constant-risk version of the Moran's I statistic proposed by Walter (1992).

Usage

morancr.stat(cases, w, ex)

Arguments

cases

The number of cases observed in each region.

w

A binary spatial adjacency matrix for the regions.

ex

The expected number of cases for each region.

Value

Returns a numeric value.

Author(s)

Joshua French

References

Walter, S. D. (1992). The analysis of regional patterns in health data: I. Distributional considerations. American Journal of Epidemiology, 136(6), 730-741.

See Also

morancr.test

Examples

data(nydf)
data(nyw)
ex <- sum(nydf$cases) / sum(nydf$pop) * nydf$pop
morancr.stat(cases = nydf$cases, w = nyw, ex = ex)

jpfrench81/smerc documentation built on Jan. 13, 2024, 4:30 a.m.