compare_avg_tax_rates {grattan} | R Documentation |
Compare average tax rates by percentile
Description
To determine the effects of bracket creep on a proposed tax policy, a common task is calculate the change in the average tax rates for each percentile. This function accepts a sample file and a baseline sample file, and returns a 100-row table giving the mean change in average tax rates for each percentile, compared to the baseline.
Usage
compare_avg_tax_rates(DT, baseDT, by = "id", ids = NULL)
Arguments
DT |
A single |
baseDT |
A |
by |
How to separate |
ids |
Subset |
[Package grattan version 2024.1.1 Index]