Cheatography
https://cheatography.com
This is a cheat sheet for personal use
This is a draft cheat sheet. It is a work in progress and is not finished yet.
Policy Functions
Elig |
Function to determine eligibility for receiving benefits |
ArithOp |
Simple calculator for common arithmetic operations |
BenCalc |
Used for modelling policy instruments with various components |
DefConst |
Define constants |
SchedCalc |
Allows for the implementation of the most common (tax) schedules |
ArithOp and Interaction
ArithOp allows for simple calculations. It requires three compulsory parameters: formula contains the calculations to perform; output_var indicates the variable where results are stored; and TAX_UNIT indicates the assessment unit for the calculations performed.
Elig
Elig determines the eligibility for of a unit according to a specific condition. It requires two parameters: elig_cond that determines the condition, and TAX_UNIT that determines the assessment unit.
Elig + ArithOp
Elig and ArithOp can be combined via the parameter Who_Must_Be_Elig. Depending on the selection, this parameter ensures that calculations of the ArithOp are carried out if, one, one_adult, all, all_adults or nobody in the assessment unit fill the conditions defined defined in Elig.
BenCalc
BenCalc is a powerful function typically used to implement means-tested benefits that consist of several components. It combines the functionalities of Elig and ArithOp and has 4 compulsory parameters: Comp_cond defines a condtion; Comp_perXX calculates a formula an applies it the assessment unit; Grp/No groups together condition and formula; outputvar and TAX_UNIT.
SchedCalc
SchedCalc is used in progressive taxes to define a tax schedule. It has various parameters that can be used, such as: tax bands (Band_UpLim / Band_LowLim), tax rates (Band_Rate) and tax base (Base). These parameters are grouped together via Grp/No. To split the base and apply the schedule separately the parameter Quotient can be used.
|
|
System functions
Uprate |
Uprating of monetary dataset variables |
SetDefault |
Definition of income lists |
DefTU |
Definition of assessment units |
DefOutput |
Definition of model output |
DefVar & DefConst |
Definition of intermediate variables and constants |
DefConst
DefConst allows to define tax-benefit policy parameters as constants (e.g. monthly amounts, income thresholds, maximum amounts, etc.). For notation purposes, constants are notated with a $ prefix.
|
|
Special Functions
Loop & UnitLoop |
Repeat part (or all) tax-benefit calculations |
Store & Restore |
Store and restore variables to their previous values |
ChangeParam |
Change value parameters |
Totals |
Calculate aggregates of variables or incomelists over the whole population or a subset |
DropUnit & KeepUnit |
Drop (or keep) individuals, families or households with special characteristics |
ILVarOp |
Operations on the variables of an incomelist |
RandSeed |
Generate a series of pseudorandom numbers |
CallProgramme |
Call external application |
DefInput |
Read values for one or more variables from a text file |
|