Three canonical tax-research exercises, each in around 20 lines.
ctt <- ato_top_taxpayers(year = "2022-23")
# Effective tax rate = tax payable / taxable income, for entities
# with positive taxable income. Drop zero-taxable rows (they bias
# the ratio; rely on loss-makers analysis separately).
ctt <- ctt[!is.na(ctt$taxable_income) & ctt$taxable_income > 0, ]
ctt$etr <- ctt$tax_payable / ctt$taxable_income
by_industry <- aggregate(etr ~ entity_type, data = ctt, FUN = median)
by_industry[order(-by_industry$etr), ]tg <- ato_tax_gaps()
library(ggplot2)
ggplot(tg, aes(x = year, y = tax_gap_estimate,
colour = tax_gap_type)) +
geom_line() +
labs(title = "ATO estimated tax gaps over time",
x = NULL, y = "Estimated tax gap (AUD million)",
colour = "Gap type",
caption = "Source: ATO Taxation Statistics. Retrieved via ato package.") +
theme_minimal()help_data <- ato_help()
# Bucketed by age range; real-terms deflation to 2022-23
help_data$real <- ato_deflate(help_data$total_debt,
year = help_data$year,
base = "2022-23")
head(help_data)Each of these replications takes an ATO published release, a
harmonise/deflate/reconcile transformation, and a small
computation. The provenance header (snapshot pin + SHA-256) makes the
result fully auditable.
Need a high-speed mirror for your open-source project?
Contact our mirror admin team at info@clientvps.com.
This archive is provided as a free public service to the community.
Proudly supported by infrastructure from VPSPulse , RxServers , BuyNumber , UnitVPS , OffshoreName and secure payment technology by ArionPay.