extrapolate: Create non-parametric estimate of what distributions would...

Description Usage Arguments Examples

Description

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.

Usage

1
extrapolate(year, old, col, log = NA, n = 10000)

Arguments

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.

Examples

1
extrapolate(race_data[race_data$year == year, ], race_data[race_data$year == 1990, ], "black", n = 10)

amd112/rseiAnalysis documentation built on May 28, 2019, 4:55 p.m.