Population-Weighted Sampling of Geographic Locations in the United States


[Up] [Top]

Documentation for package ‘USPopulationSampler’ version 0.1.1

Help Pages

assign_dates_to_pts Assign dates to synthetic spatial points generated by 'US_pop_sampler()' using observed COVID-19 temporal distributions.
covid_data_example Example COVID-19 county case data
df_bg_example Example Census block group population data
load_bg_data Downloads the preprocessed 'df_bg' dataset containing 2020 Census block-group information, geometries, and population counts from Zenodo.
load_covid_data Downloads the COVID-19 event dataset from Zenodo used by 'assign_dates_to_pts()'.
load_synthetic_covid Downloads one of the synthetic COVID-19 datasets stored as a Parquet file on Zenodo and loads it into memory.
open_synthetic_dataset Open a synthetic dataset stored in Parquet format
US_pop_sampler Samples synthetic points from US census geographies (tracts or counties) with probabilities proportional to population.