slidingWake | R Documentation |
Method iterates through all spatial and temporal window sizes specified and counts dependent events with a given spatial window and for a given temporal window (symmetrically in forward and backward direction in time). For performance reasons, the iterative counting is done in Java using the rJava interface.
IMPORTANT: The size of the Java heap space has to be set before first calling the package via library(mwa)
since JVM size cannot change once it has been initialized. This also implies that R has to be restarted if another library was already using a JVM in order for the heap space option to have any effect. To set the heap space to 1 GB, for example, use options(java.parameters = "-Xmx1g")
(512 MB is the default size).
slidingWake(data, t_unit, t_window, spat_window, treatment, control, dependent, matchColumns, estimationControls)
data |
|
t_unit |
String specifying the temporal units to be used. |
t_window |
specification of temporal windows in |
spat_window |
specification of spatial windows in kilometers. |
treatment |
vector of Strings identifying which type of events serve as treatments. |
control |
vector of Strings identifying which type of events serve as controls. |
dependent |
vector of Strings identifying which type of events are affected by treatment. |
matchColumns |
vector of Strings indicating the columns to match on. |
estimationControls |
vector of Strings indicating additional control dimensions to be included in the estimation. |
See the description of matchedwake
for details.
Returns a data.frame
. See “wakes” in the description of matchedwake
for details.
Sebastian Schutte and Karsten Donnay.
Schutte, S., Donnay, K. (2014). “Matched wake analysis: Finding causal relationships in spatiotemporal event data.” Political Geography 41:1-10.
matchedwake
, slideWakeMatch
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.