By default ACS data has columns for estimates and their associated margins of
error (at the 90% level). When calculating new variables from ACS estiamtes
it's often easier to work with standard errors rather than margins of error.
This function will convert every margin of error column (eg. b25064_m001
)
into standard errors for a given confidence level (eg. b25064_se001
). Once
this conversion has been made there are a variety of standard error calculation helpers available in this package.
1 | acs_margin_to_se(.data, level = 0.9)
|
.data |
Dataframe as created by |
level |
Confidence level for standard errors. Defaults to 0.90. |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.