Learn R Programming

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

smerc (version 1.3)

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, which were first introduced by Kulldorff and Nagarwalla (1995) and Kulldorff (1997) .

Copy Link

Version

Install

install.packages('smerc')

Monthly Downloads

849

Version

1.3

License

GPL (>= 2)

Maintainer

Joshua French

Last Published

October 7th, 2020

Functions in smerc (1.3)

arg_check_dist_ellipse

Check argments if dist.ellipse
bn.zones

Determine case windows (circles)
cepp.test

Cluster Evalation Permutation Procedure Test
color.clusters

Color clusters
bn.test

Besag-Newell Test
cepp.weights

Compute region weights for cepp.test
cepp.sim

Perform cepp.test on simulated data
combine.zones

Combine distinct zones
csg2

Construct connected subgraphs
all_shape_dists

Return all shapes and distances for each zone
dmst.test

Dynamic Minimum Spanning Tree spatial scan test
edmst.sim

Perform edmst.test on simulated data
elliptic.zones

Determine zones for elliptic.test
fast.sim

Perform fast.test on simulated data
mlf.zones

Determine zones for the maxima likelihood first algorithm.
mlink.sim

Perform mlink.test on simulated data
lget

Apply getElement over a list
logical2zones

Convert logical vector to zone
elliptic.nn

Nearest neighbors for elliptic scan
edmst.zones

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

Determine zones for the Dynamic Minimum Spanning Tree scan test
dc.sim

Perform dc.test on simulated data
distinct

Distinct elements of a list
dmst.sim

Perform dmst.test on simulated data
scan.stat

Spatial scan statistic
dc.zones

Determine zones for the Double Connected scan test
nn.cumsum

Cumulative sum over nearest neighbors
fast.zones

Determine sequence of fast subset scan zones
fast.test

Fast Subset Scan Test
flex_zones

Determine zones for flexibly shaped spatial scan test
nndist

Determine nearest neighbors based on maximum distance
knn

K nearest neighbors
scan.zones

Determine zones for the spatial scan test
print.tango

Print object of class tango.
rflex.midp

Compute middle p-value
nn2zones

Convert nearest neighbors list to zones
dist.ellipse

Compute minor axis distance of ellipse
scan_stat

Spatial scan statistic
w2segments

Returns segments connecting neighbors
flex.sim

Perform flex.test on simualated data
flex.zones

Determine zones for flexibly shaped spatial scan test
dc.test

Double Connection spatial scan test
flex.test

Flexibly-shaped Spatial Scan Test
mst.seq

Minimum spanning tree sequence
mst.all

Minimum spanning tree for all regions
nypoly

SpatialPolygonsDataFrame for New York leukemia data.
flex_test

Flexibly-shaped Spatial Scan Test
nyw

Adjacency matrix for New York leukemia data.
edmst.test

Early Stopping Dynamic Minimum Spanning Tree spatial scan test
elliptic.sim

Perform elliptic.test on simulated data
sig_noc

Return most significant, non-overlapping zones
smerc

smerc
mlf.test

Maxima Likelihood First Scan Test
nydf

Leukemia data for 281 regions in New York.
mc.pvalue

Compute Monte Carlo p-value
noz

Determine non-overlapping zones
elliptic.test

Elliptical Spatial Scan Test
mlink.test

Maximum Linkage spatial scan test
nndup

Determine duplicates in nearest neighbor list
zones.sum

Sum over zones
mlink.zones

Determine zones for the Maximum Linkage scan test
plot.smerc_cluster

Plot object of class smerc_cluster.
prep.mst

Return nicely formatted results from mst.all
print.smerc_cluster

Print object of class smerc_cluster.
tango.stat

Tango's statistic
plot.tango

Plots an object of class tango.
tango.test

Tango's clustering detection test
uls.test

Upper Level Set Spatial Scan Test
scan.test

Spatial Scan Test
uls.zones

Determine sequence of ULS zones.
scan.sim

Perform scan.test on simulated data
nnpop

Determine nearest neighbors with population constraint
rflex.sim

Perform rflex.test on simualated data
smerc_cluster

Prepare smerc_cluster
rflex.test

Restricted Flexibly-shaped Spatial Scan Test
rflex.zones

Determine zones for flexibly shaped spatial scan test
summary.smerc_cluster

Summary of smerc_cluster object
rflex_zones

Determine zones for flexibly shaped spatial scan test
uls.sim

Perform uls.test on simulated data
tango.weights

Distance-based weights for tango.test