valueDifference: Find value improvement for one group

Description Usage Arguments Examples

Description

Based on the paper 'Divergent Paths: Structural Change, Economic Rank, and the Evolution of Black-White Earnings Differences, 1940-2014', this function finds the difference in toxicity level for the same percentile in different populations. This is calculated by individually finding the toxicity in each population and returning the difference. The return is group1 - group 2, and users should be aware that the calls valueDifference(group1, group2, 500) and valueDifference(group2, group1, 500) will not return the same answer.

Usage

1
valueDifference(group1, group2, value)

Arguments

group1

is meant to be a dataframe with 2 columns. The columns should be the toxicity in a location and the count of the population of interest in that location. Column names are not important, but columns must be ordered with concentration in the first column and population counts in the second column.

group2

should have the same format as group1

value

is the percentile you want to find the toxicity difference in.

Examples

1
2
valueDifference(group1, group2, .6)
valueDifference(data1990[, c(2, 3)], data1990[, c(2, 7)], .99)

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