Description Usage Arguments Examples
This function allows you to estimate the mean toxicity of a group, given their placement in the overall distribution had stayed the same over time.
1 | extrapolate(year, old, col, log = NA, n = 10000)
|
year |
This is the dataframe that contains your data. Should contain no NA's. Each entry should be already be in census geography, and should contain the column 'concentration'. |
old |
This is the dataframe for the original year you'd like to extrapolate from. Must also contain "concentration". |
col |
This is a string with the name of the column that you'd like to extrapolate. Must have same name in both df's |
log |
Optional, parameter to specify that you'd like to simulate log toxicity. Set to any string for log. |
n |
Optional, default set to 10000, that specifies how many times you draw from the toxicities. |
1 | extrapolate(race_data[race_data$year == year, ], race_data[race_data$year == 1990, ], "black", n = 10)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.