plot.matchedwake: Plot Function for Objects of Class 'matchedwake'

View source: R/mwa.R

plot.matchedwakeR Documentation

Plot Function for Objects of Class matchedwake

Description

Overloads the default plot() for objects of class matchedwake. Returns a contour plot: The lighter the color the larger the estimated treatment effect. The corresponding standard errors are indicated by shading out some of the estimates: No shading corresponds to p<alpha1 for the treatment effect in the diff-in-diffs analysis. Dotted lines indicate p-values between alpha1 and alpha2 and full lines indicate p>alpha2. The cells indicating effect size and significance level are arranged in a table where each field corresponds to one specific combination of spatial and temporal sizes.

Usage

## S3 method for class 'matchedwake'
plot(x, zlim = NA, plotNAs = TRUE, adjust = "none", ...)

Arguments

x

object of class matchedwake.

zlim

Manually sets the range of the color map of the contour plot, required format is c(MINIMUM,MAXIMUM). Default = NA, i.e. the range is automatically set from the MINIMUM and MAXIMUM values of the estimates.

plotNAs

Boolean indicating whether or not to visualize NA estimates as “no effect” (i.e. 0). Default = TRUE.

adjust

Select p-value adjustment method for multiple testing, Default = "none"; takes values "none", "holm", "hochberg", "hommel", "bonferroni", "BH", "BY" or "fdr", see '?p.adjust' (stats) for details (Credit: David Armstrong, github.com/davidaarmstrong)

...

further arguments passed to or from other methods.

Details

The argument adjust allows to adjust p-values for multiple comparisons implementing the functionality of the p.adjust function of package stats. Given the nature of individual statistical estimation per unique combination of spatial and temporal windows, results might be vulnerable to multiple inference problems that require correction. Users can use any of the different corrections implemented in p.adjust, depending on which they think is most appropriate for their application at hand. By default no correction is applied.

Author(s)

Sebastian Schutte and Karsten Donnay.

References

Schutte, S., Donnay, K. (2014). “Matched wake analysis: Finding causal relationships in spatiotemporal event data.” Political Geography 41:1-10.

See Also

matchedwake


mwa documentation built on Nov. 5, 2025, 6:38 p.m.