Learn R Programming

smacpod (version 1.2.3)

logrr.test: Global test of clustering using log ratio of spatial densities

Description

logrr.test performs a global test of clustering for comparing cases and controls using the log ratio of spatial densities the method of Kelsall and Diggle (1995).

Usage

logrr.test(x)

Arguments

x
An renv object from the logrr.env function.

Value

  • A list providing the observed test statistic (islogrr) and the estimated p-value {pvalue}.

References

Waller, L.A. and Gotway, C.A. (2005). Applied Spatial Statistics for Public Health Data. Hoboken, NJ: Wiley. Kelsall, Julia E., and Peter J. Diggle. "Non-parametric estimation of spatial variation in relative risk." Statistics in Medicine 14.21-22 (1995): 2335-2342.

Examples

Run this code
data(grave)
renv = logrr(grave, nsim = 9)
logrr.test(renv)

Run the code above in your browser using DataLab