funsExpTrun {nnspat}R Documentation

Expected Value for Cuzick and Edwards T_{run} Test statistic

Description

Two functions: EV.Trun and EV.Trun.alt.

Both functions compute the expected value of Cuzick and Edwards T_{run} test statistic based on the number of consecutive cases from the cases in the data under RL or CSR independence.

The number of cases are denoted as n_1 (denoted as n1 as an argument) and number of controls as n_0 for both functions (denoted as n0 as an argument), to match the case-control class labeling, which is just the reverse of the labeling in Cuzick and Edwards (1990).

The function EV.Trun.alt uses a loop and takes slightly longer than the function EV.Trun, hence EV.Trun is used in other functions.

See also (Cuzick and Edwards (1990)).

Usage

EV.Trun(n1, n0)

EV.Trun.alt(n1, n0)

Arguments

n1, n0

The number of cases and controls used as arguments for both functions.

Value

The expected value of Cuzick and Edwards T_{run} test statistic for disease clustering

Author(s)

Elvan Ceyhan

References

Cuzick J, Edwards R (1990). “Spatial clustering for inhomogeneous populations (with discussion).” Journal of the Royal Statistical Society, Series B, 52, 73-104.

See Also

ceTrun and EV.Tk

Examples

n1<-20
n0<-25

EV.Trun(n1,n0)


[Package nnspat version 0.1.2 Index]