model_income_tax {grattan} | R Documentation |
Modelled Income Tax
Description
The income tax payable if tax settings are changed.
Usage
model_income_tax(
sample_file,
baseline_fy,
elasticity_of_taxable_income = NULL,
ordinary_tax_thresholds = NULL,
ordinary_tax_rates = NULL,
medicare_levy_taper = NULL,
medicare_levy_rate = NULL,
medicare_levy_lower_threshold = NULL,
medicare_levy_upper_threshold = NULL,
medicare_levy_lower_sapto_threshold = NULL,
medicare_levy_upper_sapto_threshold = NULL,
medicare_levy_lower_family_threshold = NULL,
medicare_levy_upper_family_threshold = NULL,
medicare_levy_lower_family_sapto_threshold = NULL,
medicare_levy_upper_family_sapto_threshold = NULL,
medicare_levy_lower_up_for_each_child = NULL,
lito_max_offset = NULL,
lito_taper = NULL,
lito_min_bracket = NULL,
lito_multi = NULL,
offsets = NULL,
Budget2018_lamington = FALSE,
Budget2019_lamington = NA,
Budget2018_lito_202223 = FALSE,
Budget2018_watr = FALSE,
Budget2019_watr = FALSE,
sapto_eligible = NULL,
sapto_max_offset = NULL,
sapto_lower_threshold = NULL,
sapto_taper = NULL,
sapto_max_offset_married = NULL,
sapto_lower_threshold_married = NULL,
sapto_taper_married = NULL,
sbto_discount = NULL,
cgt_discount_rate = NULL,
calc_baseline_tax = TRUE,
return. = c("sample_file", "tax", "sample_file.int"),
clear_tax_cols = TRUE,
warn_upper_thresholds = TRUE,
.debug = FALSE
)
Arguments
sample_file |
A sample file having at least as many variables as the 2012-13 sample file. |
baseline_fy |
If a parameter is not selected, the parameter's value in this tax year is used. Must be a valid tax year and one for which |
elasticity_of_taxable_income |
Either
where For example, if, for a given taxpayer,
the tax settings would otherwise result in a 2% decrease of disposable income
under the tax settings to be modelled, and If |
ordinary_tax_thresholds |
A numeric vector specifying the lower bounds of the brackets for "ordinary tax" as defined by the Regulations. The first element should be zero if there is a tax-free threshold. |
ordinary_tax_rates |
The marginal rates of ordinary tax. The first element should be zero if there is a tax-free threshold. Since the temporary budget repair levy was imposed on a discrete tax bracket when it applied, it is not included in this function. |
medicare_levy_taper |
The taper that applies between the |
medicare_levy_rate |
The ordinary rate of the Medicare levy for taxable incomes above |
medicare_levy_lower_threshold |
Minimum taxable income at which the Medicare levy will be applied. |
medicare_levy_upper_threshold |
Minimum taxable income at which the Medicare levy will be applied at the full Medicare levy rate (2% in 2015-16). Between this threshold and the |
medicare_levy_lower_sapto_threshold , medicare_levy_upper_sapto_threshold |
The equivalent values for SAPTO-eligible individuals (not families). |
medicare_levy_lower_family_threshold , medicare_levy_upper_family_threshold |
The equivalent values for families. |
medicare_levy_lower_family_sapto_threshold , medicare_levy_upper_family_sapto_threshold |
The equivalent values for SAPTO-eligible individuals in a family. |
medicare_levy_lower_up_for_each_child |
The amount to add to the |
lito_max_offset |
(deprecated) The maximum offset available for low incomes. |
lito_taper |
(deprecated) The taper to apply beyond |
lito_min_bracket |
(deprecated) The taxable income at which the value of the offset starts to reduce (from |
lito_multi |
No longer supported. |
offsets |
A list of lists created by |
Budget2018_lamington |
No longer supported |
Budget2019_lamington |
No longer supported. |
Budget2018_lito_202223 |
No longer supported. |
Budget2018_watr |
No longer supported |
Budget2019_watr |
No longer supported. |
sapto_eligible |
Whether or not each taxpayer in |
sapto_max_offset |
The maximum offset available through SAPTO. |
sapto_lower_threshold |
The threshold at which SAPTO begins to reduce (from |
sapto_taper |
The taper rate beyond |
sapto_max_offset_married , sapto_lower_threshold_married , sapto_taper_married |
As above, but applied to members of a couple |
sbto_discount |
The |
cgt_discount_rate |
(numeric(1)) The capital gains tax discount rate, currently 50%. |
calc_baseline_tax |
(logical, default: |
return. |
What should the function return? One of |
clear_tax_cols |
If |
warn_upper_thresholds |
If |
.debug |
Return a data.table of |
Examples
library(data.table)
library(hutils)
# With new tax-free threshold of $20,000:
# if (requireNamespace("taxstats", quietly = TRUE) && FALSE) {
# library(taxstats)
# library(magrittr)
#
# model_income_tax(sample_file_1314,
# "2013-14",
# ordinary_tax_thresholds = c(0, 20e3, 37e3, 80e3, 180e3)) %>%
# select_grep("tax", "Taxable_Income")
#
# }