Learn R Programming

⚠️There's a newer version (2025.5.0) of this package.Take me there.



grattan

Australian Tax Policy Analysis

NEWS

1.5.2.5

2017-11-16

  • Update wage data to 2017-Q3
  • Update labour force data to 2017-09
  • (internal) The lf_trend internal data table used to report the labour force in thousands of persons, as the ABS does. This seemed a bit strange, so now obsValue uses integers (i.e. just the labour force).
  • Vignettes now install taxstats to a temporary directory if not already installed, rather than the user or system's library.

2017-10-27

  • Update CPI data
  • Fix wage data

1.5.2.3

2017-10-21

  • Update labour-force data

grattan 1.5.2.0

2017-10-19

  • New internal C++ functions for income_tax, and related functions
  • BTO function now uses tax scales from the Income Tax Regulations

grattan 1.5.1.2

2017-10-15

  • Optional argument age in income_tax now NULL rather than 42. The default argument continues to result in SAPTO being not applied if .dots.ATO. However, if .dots.ATO is supplied (and the age variable has not been removed from it), the individuals' SAPTO eligibility is determined by the age variable in .dots.ATO, rather than setting each individual's SAPTO to 0.

2017-08-30

  • Update labour force data. Avoid segfault in separate package in unit test.
  • Added a NEWS.md file to track changes to the package.

2017-08-16

  • Update wage, CPI, labour force data

2017-07-02

  • Update wage and labour force data
  • Fix breaking build due to change in dplyr API

CRAN Notes

Test environments

R CMD check results

0 errors | 0 warnings | 2 notes

  • The first NOTE is with respect to the 'taxstats' package not being a mainstream repository; its inclusion satisfies the CRAN repository policy, as in previous versions.

The NOTE also recommends including the URL https://hughparsonage.github.io/drat/ in angle brackets; however, this NOTE is spurious as the URL is within R code.

  • The second NOTE refers to GNU make as a SystemRequirements. This is a modest requirement and is necessary to run RcppParallel.

In addition:

  • There are two 'Additional issues' in which undefined behaviour is detected via clang-UBSAN and gcc-UBSAN. These issues arise due to an issue with RcppParallel. The maintainers of RcppParallel appears to fixed these issues in a development version (downstream of https://github.com/RcppCore/RcppParallel/pull/48); however this version is yet to reach CRAN. Accordingly, there are no changes in my package addressing these issues.

Copy Link

Version

Install

install.packages('grattan')

Monthly Downloads

618

Version

1.5.2.5

License

GPL-2

Issues

Pull Requests

Stars

Forks

Maintainer

Hugh Parsonage

Last Published

November 16th, 2017

Functions in grattan (1.5.2.5)

Offset

General offset in C++
MedicareLevy

Medicare levy in C++
apply_super_caps_and_div293

Superannuation caps and Division 293 calculations
aus_pop_qtr

Australia's population
CG_population_inflator

Forecasting capital gains
aus_pop_qtr_age

Australian estimated resident population by age and date
age_grouper

Age grouper
cpi_inflator

CPI inflator
cpi_inflator_quarters

CPI inflator when dates are nice
IncomeTax

IncomeTax
inverse_average_rate

Inverse average tax rate
inverse_income

Inverse income tax functions
cpi_inflator_general_date

CPI for general dates
prohibit_unequal_length_vectors

Prohibit unequal length vectors
generic_inflator

Generic inflator
prohibit_vector_recycling

Prohibit vector recycling
pmaxC

Parallel maximum
income_tax_sapto

Income tax payable as a function of SAPTO
student_repayment

HELP / HECS repayment amounts
wage_inflator

Inflation using the Wage Price Index.
inflator

Inflate using a general index
gni

Gross National Income, Australia
grattan-package

The grattan package.
medicare_levy

Medicare levy
differentially_uprate_wage

Differential uprating
model_new_caps_and_div293

Modelling superannuation changes
income_tax

Income tax payable
pmaxV

Parallel maximum
new_income_tax

New income tax payable Income tax payable with new tax brackets, tax rates etc
pminC

Parallel maximum
new_medicare_levy

New medicare levy
sapto

Seniors and Pensioner Tax Offset
pmax3

Threeway parallel maximum
sapto_rcpp

SAPTO in C++
gdp

Gross Domestic Product, Australia
npv

Financial functions
lito

Low Income Tax Offset
project

A function for simple projections of tables of Australian Taxation Office tax returns.
project_to

A function for simple projections of sample files
max_super_contr_base

Maximum superannuation contribution base
sapto_rcpp_singleton

SAPTO singleton
new_sapto

SAPTO with user-defined thresholds
sapto_rcpp_yr

SAPTO for specific years in C++
rebate_income

Rebate income
is.fy

Convenience functions for dealing with financial years
residential_property_prices

Residential property prices in Australia
lf_inflator

Labour force inflators
weighted_ntile

Weighted quantiles
pminV

Parallel maximum
prohibit_length0_vectors

Prohibit zero lengths
bto

Beneficiary tax offset