BinPer: Percentage of concordant intervals

Description Usage Arguments Details Value See Also Examples

View source: R/BinPer.R

Description

It calculates the proportion of the number of intervals with at least one point in both processes, and the sum of the number of intervals with at least one point in one process, n_{x,y}/(n_{x,y}+n_{x,0}+n_{0,y}).

Usage

1
BinPer(posx, posy, ll, T)

Arguments

posx

Numeric vector. Occurrence points in the first process, N_x.

posy

Numeric vector. Occurrence points in the second process, N_y.

ll

Numeric value. Lenght of the intervals where the number of points are counted.

T

Numeric value. Length of the observed period of the point processes.

Details

In order to be useful, an adequate length of interval ll, depending on the expected dependence, has to be selected.

Value

binper

Percentage of concordant intervals.

See Also

depchi, CountingCor

Examples

1
2
3
4
#generation of two HPP
aux1<-simNHPc(lambda=rep(0.08,200),fixed.seed=123)
aux2<-simNHPc(lambda=rep(0.12,200),fixed.seed=125)
BinPer(aux1$posNH, aux2$posNH,ll=5, T=200)

IndTestPP documentation built on Aug. 29, 2020, 1:06 a.m.