Augment SaTScan Results with Location-Level Data
Source:R/satscan_result_s3_methods.R
augment.satscan_result.RdAdds cluster assignments and statistics to the original location data, following the broom package convention.
Value
A data frame with original location data plus:
- .cluster
Cluster assignment (NA if not in cluster)
- .in_cluster
Logical: is location in a cluster?
- .relative_risk
Location-specific relative risk
- .cluster_p_value
P-value of assigned cluster
Examples
if (FALSE) { # \dontrun{
result <- satscanr(cas, geo, pop, ...)
augment(result)
# Or augment original data
augment(result, data = original_data)
} # }