-
Notifications
You must be signed in to change notification settings - Fork 31
Add firm analysis files #1332
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Add firm analysis files #1332
Conversation
MaxGhenis
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
only rules in this repo
MaxGhenis
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
great to see this passing checks!
| definition_period = YEAR | ||
| unit = GBP | ||
| documentation = "Total VAT charged on firm's sales (output VAT)" | ||
|
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| defined_for = "firm_vat_registered" | |
| quantity_type = FLOW | ||
|
|
||
|
|
||
| class annual_input_k(Variable): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
make all numbers pounds not thousands
| description = "Business firm variables from firm dataset." | ||
|
|
||
|
|
||
| class firm_id(Variable): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
make each variable its own file
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
don't think we need this or business_group - we're only targeting at this level not simulating at it
| turnover = firm("annual_turnover_k", period) * 1000 | ||
| threshold = parameters(period).gov.hmrc.vat.registration_threshold | ||
|
|
||
| return turnover > threshold |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
they can choose to register if under right? can be beneficial?
if so we may need another variable here that's from the calibrated dataset like registers_for_vat_if_not_required
| output_vat = firm("firm_vat_on_sales", period) | ||
| input_vat = firm("firm_vat_on_purchases", period) | ||
|
|
||
| return output_vat - input_vat |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
use adds/subtracts
Fixes #1333