R/marginal_rate.R

Defines functions marginal_rate

marginal_rate <- function(DT, fy.year, run = 100, 
                          col_taxable_income = "Taxable_Income") {
  Tax0 <- income_tax(.subset2(DT, col_taxable_income), fy.year = fy.year, .dots.ATO = DT)
  Tax1 <- income_tax(.subset2(DT, col_taxable_income) + run, fy.year = fy.year, .dots.ATO = DT)
  (Tax1 - Tax0) / run
}

Try the grattan package in your browser

Any scripts or data that you put into this service are public.

grattan documentation built on Sept. 4, 2023, 5:08 p.m.