Learn R Programming

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

smerc (version 1.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

1,190

Version

1.2

License

GPL (>= 2)

Maintainer

Joshua French

Last Published

May 26th, 2020

Functions in smerc (1.2)

casewin

Determine case windows (circles)
cepp.sim

Perform cepp.test on simulated data
cepp.test

Cluster Evalation Permutation Procedure Test
all_shape_dists

Return all shapes and distances for each zone
bn.test

Besag-Newell Test
arg_check_rflex_zones

Check arguments of rflex.zones
arg_check_dist_ellipse

Check argments if dist.ellipse
edmst.sim

Perform edmst.test on simulated data
dc.sim

Perform dc.test on simulated data
cepp.weights

Compute region weights for cepp.test
dmst.sim

Perform dmst.test on simulated data
csg2

Construct connected subgraphs
dmst.zones

Determine zones for the Dynamic Minimum Spanning Tree scan test
dist.ellipse

Compute minor axis distance of ellipse
distinct

Distinct elements of a list
dmst.test

Dynamic Minimum Spanning Tree spatial scan test
color.clusters

Color clusters
combine.zones

Combine distinct zones
flex.sim

Perform flex.test on simualated data
fast.zones

Determine sequence of fast subset scan zones
elliptic.test

Elliptical Spatial Scan Test
elliptic.zones

Determine zones for elliptic.test
elliptic.sim

Perform elliptic.test on simulated data
fast.test

Fast Subset Scan Test
fast.sim

Perform fast.test on simulated data
elliptic.nn

Nearest neighbors for elliptic scan
dc.zones

Determine zones for the Double Connected scan test
dc.test

Double Connection spatial scan test
edmst.test

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

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

Determine zones for the maxima likelihood first algorithm.
knn

K nearest neighbors
mlink.zones

Determine zones for the Maximum Linkage scan test
mlink.test

Maximum Linkage spatial scan test
flex.test

Flexibly-shaped Spatial Scan Test
flex.zones

Determine zones for flexibly shaped spatial scan test
mlf.test

Maxima Likelihood First Scan Test
mc.pvalue

Compute Monte Carlo p-value
lget

Apply getElement over a list
mlink.sim

Perform mlink.test on simulated data
mst.all

Minimum spanning tree for all regions
nyw

Adjacency matrix for New York leukemia data.
nypoly

SpatialPolygonsDataFrame for New York leukemia data.
mst.seq

Minimum spanning tree sequence
nn2zones

Convert nearest neighbors list to zones
nn.cumsum

Cumulative sum over nearest neighbors
noz

Determine non-overlapping zones
nydf

Leukemia data for 281 regions in New York.
nndup

Determine duplicates in nearest neighbor list
print.tango

Print object of class tango.
nndist

Determine nearest neighbors based on maximum distance
prep.mst

Return nicely formatted results from mst.all
print.smerc_cluster

Print object of class smerc_cluster.
rflex.midp

Compute middle p-value
plot.smerc_cluster

Plot object of class smerc_cluster.
plot.tango

Plots an object of class tango.
rflex.sim

Perform rflex.test on simualated data
rflex.zones

Determine zones for flexibly shaped spatial scan test
rflex.test

Restricted Flexibly-shaped Spatial Scan Test
nnpop

Determine nearest neighbors with population constraint
sig_noc

Return most significant, non-overlapping zones
scan.sim

Perform scan.test on simulated data
scan.test

Spatial Scan Test
summary.smerc_cluster

Summary of smerc_cluster object
tango.weights

Distance-based weights for tango.test
tango.test

Tango's cluster detection test
scan.stat

Spatial scan statistic
smerc_cluster

Prepare smerc_cluster
scan.zones

Determine zones for the spatial scan test
tango.stat

Tango's statistic
uls.zones

Determine sequence of ULS zones.
w2segments

Returns segments connecting neighbors
uls.test

Upper Level Set Spatial Scan Test
uls.sim

Perform uls.test on simulated data
zones.sum

Sum over zones