discover_outlying_rates: Discover outlying counties

Description Usage Arguments Details Value See Also

View source: R/population.R

Description

A major question we face is identifying whether the modeled population growth rate in a region is "reasonable." To date reasonableness has been subjective, but this function provides quantitative methodologies to calculate this.

Usage

1
2
discover_outlying_rates(db, counties = NULL, method = c("count",
  "pval"))

Arguments

db

The swim database

counties

A character vector of counties to calculate.

method

The method by which unreasonable counties are identified. See "Details".

Details

If method = "count" (default), the number of years for which the annualized population growth rate lies outside of the historical confidence interval. If method = "pval", a data frame of swim scenario years with with the $p$-value of the annualized growth rate on the distribution defined by historical data.

Value

A data frame with information on each county's conformity with historical trends.

See Also

pop_rate


pbsag/swimr documentation built on Dec. 12, 2020, 3:08 a.m.