Learn R Programming

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

smerc (version 1.4.2)

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

677

Version

1.4.2

License

GPL (>= 2)

Maintainer

Joshua French

Last Published

February 13th, 2021

Functions in smerc (1.4.2)

color.clusters

Color clusters
cepp.weights

Compute region weights for cepp.test
cepp.sim

Perform cepp.test on simulated data
cepp.test

Cluster Evalation Permutation Procedure Test
dc.test

Double Connection spatial scan test
dc.sim

Perform dc.test on simulated data
dmst.zones

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

Dynamic Minimum Spanning Tree spatial scan test
distinct

Distinct elements of a list
elliptic.nn

Nearest neighbors for elliptic scan
combine.zones

Combine distinct zones
elliptic.test

Elliptical Spatial Scan Test
elliptic.zones

Determine zones for elliptic.test
elliptic.sim

Perform elliptic.test on simulated data
csg2

Construct connected subgraphs
nypoly

SpatialPolygonsDataFrame for New York leukemia data.
bn.test

Besag-Newell Test
bn.zones

Determine case windows (circles)
mlink.sim

Perform mlink.test on simulated data
flex.zones

Determine zones for flexibly shaped spatial scan test
flex.test

Flexibly-shaped Spatial Scan Test
mlink.test

Maximum Linkage spatial scan test
all_shape_dists

Return all shapes and distances for each zone
dmst.sim

Perform dmst.test on simulated data
edmst.zones

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

Compute Elbow Point
logical2zones

Convert logical vector to zone
rflex.test

Restricted Flexibly-shaped Spatial Scan Test
mc.pvalue

Compute Monte Carlo p-value
edmst.sim

Perform edmst.test on simulated data
edmst.test

Early Stopping Dynamic Minimum Spanning Tree spatial scan test
optimal_ubpop

Optimal Population Upper Bound Statistics
nyw

Adjacency matrix for New York leukemia data.
mlink.zones

Determine zones for the Maximum Linkage scan test
smerc_cluster

Prepare smerc_cluster
rflex_zones

Determine zones for flexibly shaped spatial scan test
rflex.zones

Determine zones for flexibly shaped spatial scan test
mst.all

Minimum spanning tree for all regions
summary.smerc_cluster

Summary of smerc_cluster object
arg_check_dist_ellipse

Check argments if dist.ellipse
scan.stat

Spatial scan statistic
uls.test

Upper Level Set Spatial Scan Test
uls.zones

Determine sequence of ULS zones.
fast.zones

Determine sequence of fast subset scan zones
print.smerc_cluster

Print object of class smerc_cluster.
knn

K nearest neighbors
dist.ellipse

Compute minor axis distance of ellipse
dc.zones

Determine zones for the Double Connected scan test
scan.test

Spatial Scan Test
lget

Apply getElement over a list
fast.test

Fast Subset Scan Test
fast.sim

Perform fast.test on simulated data
mlf.zones

Determine zones for the maxima likelihood first algorithm.
mlf.test

Maxima Likelihood First Scan Test
nn2zones

Convert nearest neighbors list to zones
flex_test

Flexibly-shaped Spatial Scan Test
flex.sim

Perform flex.test on simualated data
mst.seq

Minimum spanning tree sequence
flex_zones

Determine zones for flexibly shaped spatial scan test
nndist

Determine nearest neighbors based on maximum distance
nydf

Leukemia data for 281 regions in New York.
print.smerc_optimal_ubpop

Print object of class smerc_optimal_ubpop.
nndup

Determine duplicates in nearest neighbor list
nn.cumsum

Cumulative sum over nearest neighbors
seq_scan_sim

Perform scan test on simulated data sequentially
noz

Determine non-overlapping zones
rflex.sim

Perform rflex.test on simualated data
seq_scan_test

Sequential Scan Test
nnpop

Determine nearest neighbors with population constraint
plot.tango

Plots an object of class tango.
plot.smerc_cluster

Plot object of class smerc_cluster.
print.tango

Print object of class tango.
prep.mst

Return nicely formatted results from mst.all
scan.sim

Perform scan.test on simulated data
tango.stat

Tango's statistic
plot.smerc_optimal_ubpop

Plot object of class smerc_optimal_ubpop.
tango.test

Tango's clustering detection test
tango.weights

Distance-based weights for tango.test
smerc

smerc
sig_noc

Return most significant, non-overlapping zones
uls.sim

Perform uls.test on simulated data
rflex.midp

Compute middle p-value
scan.zones

Determine zones for the spatial scan test
scan_stat

Spatial scan statistic
w2segments

Returns segments connecting neighbors
zones.sum

Sum over zones