Learn R Programming

grattan (version 1.5.2.5)

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

Description

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

Usage

project(sample_file, h = 0L, fy.year.of.sample.file = "2013-14",
  WEIGHT = 50L, excl_vars, forecast.dots = list(estimator = "mean",
  pred_interval = 80), wage.series = NULL, lf.series = NULL,
  .recalculate.inflators = FALSE, .copyDT = TRUE)

Arguments

sample_file

A sample file, most likely the 2012-13 sample file. It is intended that to be the most recent.

h

An integer. How many years should the sample file be projected?

fy.year.of.sample.file

The financial year of sample_file.

WEIGHT

The sample weight for the sample file. (So a 2% file has WEIGHT = 50.)

excl_vars

A character vector of column names in sample_file that should not be inflated. Columns not present in the 2013-14 sample file are not inflated and nor are the columns Ind, Gender, age_range, Occ_code, Partner_status, Region, Lodgment_method, and PHI_Ind.

forecast.dots

A list containing parameters to be passed to generic_inflator.

wage.series
lf.series
.recalculate.inflators

Should generic_inflator() or CG_inflator be called to project the other variables? Adds time.

.copyDT

Should a copy() of sample_file be made? If set to FALSE, will update sample_file.

Value

A sample file of the same number of rows as sample_file with inflated values (including WEIGHT).

Details

We recommend you use sample_file_1213, rather than sample_file_1314, unless you need the superannuation variables, as the latter suggests lower-than-recorded tax collections.

Examples

Run this code
# NOT RUN {
if (requireNamespace("taxstats", quietly = TRUE) && requireNamespace("data.table", quietly = TRUE)){
  library(taxstats)
  library(data.table)
  sample_file <- copy(sample_file_1314)
  sample_file_1617 <- project(sample_file, h = 3L)  # to "2016-17"
}
# }

Run the code above in your browser using DataLab