Learn R Programming

rgeoda (version 0.1.0)

eb_rates_standardization: Empirical Bayes(EB) Rate Standardization

Description

The function to compute EB Rate Standardization from an event variable and a base variable.

Usage

eb_rates_standardization(df)

Value

A data.frame with two columns "EB Rate" and "IsNull".

Arguments

df

A data frame with two selected variable: one is "event", anothor is "base" variable. E.g. guerry[c("hr60", "po60")]

Examples

Run this code
if (FALSE) {
library(sf)
nat <- st_read("natregimes.shp")
ebr <- eb_rates_standardization(nat[c("HR60", "PO60")])
ebr
}

Run the code above in your browser using DataLab