Learn R Programming

mppa (version 1.0)

mppa-package: Statistics for analysing multiple simultaneous point processes on the real line

Description

A procedure to test for dependence between point processes on the real line, e.g. causal dependence, correlation, inhibition or anti-correlation. The package also provides a number of utilities for plotting simultaneous point processes, and combining p-values.

Arguments

Details

Package:
mppa
Type:
Package
Version:
1.0
Date:
2014-08-16
License:
GPL (>= 2)
Depends:
methods
corrtest: testing for dependence between point processes (can be causal dependence, correlation, inhibition or anti-correlation).

mproc: a class for plotting multiple simultaneous point processes.

TMT.test, F.test, simes.test: methods for combining p-values.

References

Patrick Rubin-Delanchy and Nicholas A Heard. ``A test for dependence between two point processes on the real line''. arXiv:1408.3845.

Examples

Run this code
A = runif(20)
B=runif(20)
##around ten B events are caused by A 
B=c(B, sample(A, 10)+abs(rnorm(10, 0,.01))); B = B[B>0&B<1]
## Not run: plot(mp(list(A=A,B=B)))
corrtest(A,B)

Run the code above in your browser using DataLab