eb_rates {rgeoda} | R Documentation |
Empirical Bayes(EB) Rate
Description
The function to compute EB Rate from an event variable and a base variable.
Usage
eb_rates(df)
Arguments
df |
A data frame with two selected variable: one is "event", anothor is "base" variable. E.g. guerry[c("hr60", "po60")] |
Value
A data.frame with two columns "EB Rate" and "IsNull".
Examples
## Not run:
library(sf)
nat <- st_read("natregimes.shp")
ebr <- eb_rates(nat[c("HR60", "PO60")])
ebr
## End(Not run)
[Package rgeoda version 0.0.10-4 Index]