View source: R/target.population.demographics.R
target.population.demographics | R Documentation |
Looks up and returns six key demographic statistics for a target state to be used for calculating sample weights. State-level population statistics from U.S. Census Bureau, American Community Survey 5-year estimates. Data from state.demographic.info, a saved datafile in sate package.
target.population.demographics(state)
state |
The target state, input as two-letter abbreviation (i.e., "GA" "TX" or "FL"). If no state specified, will use "USA". |
A one row data.frame with the following statistics: black, ba_or_more, hhincome_over50k, age35plus, woman, hispanic
library(sate)
target.population.demographics(state="FL")
target.population.demographics() # will return stats for USA
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.