ff_se_count: Standard error for aggregated count data

View source: R/adjustments.R

ff_se_countR Documentation

Standard error for aggregated count data

Description

This function calculates the standard error for aggregated count data and summed data. For example, this can be used to calculate the standard error for the total population of Forsyth and Guilford counties.

Usage

ff_se_count(se_vec)

Arguments

se_vec

A numeric vector of values representing standard errors of count data

Details

Reference for calculations: US Census Bureau, A Compass for Understanding and Using ACS Data, October 2008, A-14

Value

A numeric value representing the standard error of the aggregate count data.

Examples

df <- data.frame(population = round( rnorm(n = 10, mean = 100000, sd = 30000), 0),
                 se = round( rnorm(n = 10, mean = 4000, sd = 1500), 0))

# calculate the aggregate population
sum(df$population)

# calculate the aggregate standard error
ff_se_count(df$se)


forsythfuture/FFtools documentation built on April 5, 2022, 10:02 p.m.