Learn R Programming

⚠️There's a newer version (1.8.3) of this package.Take me there.

smerc (version 1.1)

Statistical Methods for Regional Counts

Description

Implements statistical methods for analyzing the counts of areal data, with a focus on the detection of spatial clusters and clustering. The package has a heavy emphasis on spatial scan methods, first introduced by Kulldorff and Nagarwalla (1995) and Kulldorff (1997) .

Copy Link

Version

Install

install.packages('smerc')

Monthly Downloads

1,190

Version

1.1

License

GPL (>= 2)

Maintainer

Joshua French

Last Published

September 19th, 2019

Functions in smerc (1.1)

dc.sim

Perform dc.test on simulated data
dc.test

Double Connection spatial scan test
arg_check_dist_ellipse

Check argments if dist.ellipse
bn.test

Besag-Newell Test
distinct

Distinct elements of a list
dmst.sim

Perform dmst.test on simulated data
casewin

Determine case windows (circles)
combine.zones

Combine distinct zones
csg

Construct connected subgraphs
dweights

Distance-based weights
cepp.weights

Compute region weights for cepp.test
cepp.sim

Perform cepp.test on simulated data
dc.zones

Determine zones for the Double Connected scan test
fast.zones

Determine sequence of fast subset scan zones
dist.ellipse

Compute minor axis distance of ellipse
cepp.test

Cluster Evalation Permutation Procedure Test
edmst.sim

Perform edmst.test on simulated data
fast.test

Fast Subset Scan Test
fast.sim

Perform fast.test on simulated data
plot.scan

Plots object of class scan.
color.clusters

Color clusters
elliptic.test

Elliptical Spatial Scan Test
elliptic.zones

Determine zones for elliptic.test
flex.sim

Perform flex.test on simualated data
mlf.test

Maxima Likelihood First Scan Test
plot.tango

Plots an object of class tango.
nnpop

Determine nearest neighbors with population constraint
rflex.zones

Determine zones for flexibly shaped spatial scan test
dmst.test

Dynamic Minimum Spanning Tree spatial scan test
mst.seq

Minimum spanning tree sequence
nn.cumsum

Cumulative sum over nearest neighbors
knn

K nearest neighbors
mc.pvalue

Compute Monte Carlo p-value
edmst.test

Early Stopping Dynamic Minimum Spanning Tree spatial scan test
mlf.zones

Determine zones for the maxima likelihood first algorithm.
nydf

Leukemia data for 281 regions in New York.
nndup

Determine duplicates in nearest neighbor list
dmst.zones

Determine zones for the Dynamic Minimum Spanning Tree scan test
edmst.zones

Determine zones for the early stopping dynamic Minimum Spanning Tree scan test
prep.scan

Prepare scan results
prep.mst

Return nicely formatted results from mst.all
flex.test

Flexibly-shaped Spatial Scan Test
scan.zones

Determine zones for the spatial scan test
uls.sim

Perform uls.test on simulated data
scan.test

Spatial Scan Test
rflex.sim

Perform rflex.test on simualated data
flex.zones

Determine zones for flexibly shaped spatial scan test
rflex.test

Restricted Flexibly-shaped Spatial Scan Test
elliptic.nn

Nearest neighbors for elliptic scan
mlink.zones

Determine zones for the Maximum Linkage scan test
mst.all

Minimum spanning tree for all regions
uls.zones

Determine sequence of ULS zones.
uls.test

Upper Level Set Spatial Scan Test
nypoly

SpatialPolygonsDataFrame for New York leukemia data.
nyw

Adjacency matrix for New York leukemia data.
w2segments

Returns segments connecting neighbors
nn2zones

Convert nearest neighbors list to zones
elliptic.sim

Perform elliptic.test on simulated data
zones.sum

Sum over zones
nndist

Determine nearest neighbors based on maximum distance
scan.sim

Perform scan.test on simulated data
scan.stat

Spatial scan statistic
mlink.sim

Perform mlink.test on simulated data
mlink.test

Maximum Linkage spatial scan test
tango.stat

Tango's statistic
tango.test

Tango's cluster detection test
rflex.midp

Compute middle p-value
prep.scan2

a simplified prep.scan for non-scan methods orders on p-value instead of test statistic
arg_check_rflex_zones

Check arguments of rflex.zones
arg_check_bn_test

Argument checking for bn.test
all_shape_dists

Return all shapes and distances for each zone
arg_check_dmst_zones

Argument checking for dmst.zones, dc.zones, and mlink.zones functions
arg_check_tango_test

Argument checking for tango.test
arg_check_cepp_test

Argument checking for cepp.test
arg_check_sim

Argument checking for *.sim functions
arg_check_scan_test

Argument checking for many scan-like functions
arg_check_scan_zones

Argument checking for scan.zones