View source: R/summary.spscan.R
summary.spscan | R Documentation |
spscan.test
.Summarize object of class scan
from spscan.test
.
## S3 method for class 'spscan'
summary(object, ..., idx = seq_along(object$clusters), digits = 1)
object |
An |
... |
Additional arguments affecting the summary produced. |
idx |
An index vector indicating the elements of |
digits |
Integer indicating the number of decimal places. |
Returns/prints a data frame. Each row of the data frame summarizes the centroid of each cluster, the cluster radius, the number of events in the cluster, the number of cases in the cluster, the expected number of cases in the cluster, the relative risk of the cluster (cases/events in cluster)(cases/events outside cluster), the natural logarithm of the test statistic, and the associated p-value.
data(grave)
out = spscan.test(grave, nsim = 99, alpha = 0.8)
summary(out)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.