-
Notifications
You must be signed in to change notification settings - Fork 32
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
dynamic inputs for small_open boolean and world interest rate #703
Open
PeterDSteinberg
wants to merge
3
commits into
master
Choose a base branch
from
issue-481-dynamic-world-int-rate
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from 2 commits
Commits
Show all changes
3 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
# -*- coding: utf-8 -*- | ||
from __future__ import unicode_literals | ||
|
||
from django.db import models, migrations | ||
import webapp.apps.taxbrain.models | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
dependencies = [ | ||
('dynamic', '0015_auto_20170918_1255'), | ||
] | ||
|
||
operations = [ | ||
migrations.AddField( | ||
model_name='dynamicsaveinputs', | ||
name='small_open', | ||
field=models.NullBooleanField(default=None), | ||
), | ||
migrations.AddField( | ||
model_name='dynamicsaveinputs', | ||
name='world_int_rate', | ||
field=webapp.apps.taxbrain.models.CommaSeparatedField(default=None, max_length=200, null=True, blank=True), | ||
), | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
# -*- coding: utf-8 -*- | ||
from __future__ import unicode_literals | ||
|
||
from django.db import models, migrations | ||
import webapp.apps.taxbrain.models | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
dependencies = [ | ||
('dynamic', '0016_auto_20171012_1733'), | ||
] | ||
|
||
operations = [ | ||
migrations.AddField( | ||
model_name='dynamicelasticitysaveinputs', | ||
name='small_open', | ||
field=models.NullBooleanField(default=None), | ||
), | ||
migrations.AddField( | ||
model_name='dynamicelasticitysaveinputs', | ||
name='world_int_rate', | ||
field=webapp.apps.taxbrain.models.CommaSeparatedField(default=None, max_length=200, null=True, blank=True), | ||
), | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
# -*- coding: utf-8 -*- | ||
from __future__ import unicode_literals | ||
|
||
from django.db import models, migrations | ||
import webapp.apps.taxbrain.models | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
dependencies = [ | ||
('dynamic', '0017_auto_20171012_1826'), | ||
] | ||
|
||
operations = [ | ||
migrations.AddField( | ||
model_name='dynamicbehaviorsaveinputs', | ||
name='small_open', | ||
field=models.NullBooleanField(default=None), | ||
), | ||
migrations.AddField( | ||
model_name='dynamicbehaviorsaveinputs', | ||
name='world_int_rate', | ||
field=webapp.apps.taxbrain.models.CommaSeparatedField(default=None, max_length=200, null=True, blank=True), | ||
), | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,51 @@ | ||
{"g_y_annual": {"col_label": ["Growth rate of technology"], "description": "This parameter gives the underlying growth rate for labor augmenting technological change. The growth rate determines long-run economic growth in OG-USA.", "irs_ref": "", "notes": "", "value": 0.03, "long_name": "Growth rate of technology"}, "frisch": {"col_label": ["Frisch elasticity"], "description": "The Frisch elasticity gives the elasticity of labor supply to changes in the net of tax wage rate, holding wealth constant. This means that the Frisch elasticity captures the substitution effects, but not the income effects, of a change in the net of tax wage rate. A Frisch elasticity of 0.4 would indicate that if the net of tax wage rate increases by 10% then hours worked would increase by 4%, if wealth were held constant. Note that OG-USA uses an elliptical utility function for labor supply. We parameterize this function to fit a constant Frisch elasticity function with a Frisch elasticity as input here.", "irs_ref": "", "notes": "", "validations": {"max": 0.8, "min": 0.1}, "value": 0.4, "long_name": "Frisch elastictiy of labor supply used to fit elliptical utility"}} | ||
{ | ||
"g_y_annual": { | ||
"col_label": [ | ||
"Growth rate of technology" | ||
], | ||
"description": "This parameter gives the underlying growth rate for labor augmenting technological change. The growth rate determines long-run economic growth in OG-USA.", | ||
"long_name": "Growth rate of technology", | ||
"notes": "", | ||
"value": 0.03, | ||
"irs_ref": "" | ||
}, | ||
"frisch": { | ||
"col_label": [ | ||
"Frisch elasticity" | ||
], | ||
"description": "The Frisch elasticity gives the elasticity of labor supply to changes in the net of tax wage rate, holding wealth constant. This means that the Frisch elasticity captures the substitution effects, but not the income effects, of a change in the net of tax wage rate. A Frisch elasticity of 0.4 would indicate that if the net of tax wage rate increases by 10% then hours worked would increase by 4%, if wealth were held constant. Note that OG-USA uses an elliptical utility function for labor supply. We parameterize this function to fit a constant Frisch elasticity function with a Frisch elasticity as input here.", | ||
"long_name": "Frisch elastictiy of labor supply used to fit elliptical utility", | ||
"notes": "", | ||
"validations": { | ||
"max": 0.8, | ||
"min": 0.1 | ||
}, | ||
"value": 0.4, | ||
"irs_ref": "" | ||
}, | ||
"world_int_rate": { | ||
"col_label": [ | ||
"World interest rate" | ||
], | ||
"description": "World interest rate", | ||
"long_name": "World interest rate if using 'small open' economy", | ||
"notes": "World interest rate if using 'small open' economy", | ||
"validations": { | ||
"max": 0.8, | ||
"min": -0.8 | ||
}, | ||
"value": 0.04, | ||
"irs_ref": "" | ||
}, | ||
"small_open": { | ||
"col_label": [ | ||
"Use 'small open' economy" | ||
], | ||
"description": "Small open economy assumptionx", | ||
"long_name": "TODO long_name", | ||
"notes": "TODO notes", | ||
"value": true, | ||
"irs_ref": "" | ||
} | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
{"USER_MODIFIABLE_PARAMS": ["g_y_annual", "frisch"]} | ||
{"USER_MODIFIABLE_PARAMS": ["g_y_annual", "frisch", "word_int_rate"]} | ||
18 changes: 18 additions & 0 deletions
18
webapp/apps/taxbrain/migrations/0055_remove_taxsaveinputs_reform_style.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
# -*- coding: utf-8 -*- | ||
from __future__ import unicode_literals | ||
|
||
from django.db import models, migrations | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
dependencies = [ | ||
('taxbrain', '0054_outputurl_webapp_vers'), | ||
] | ||
|
||
operations = [ | ||
migrations.RemoveField( | ||
model_name='taxsaveinputs', | ||
name='reform_style', | ||
), | ||
] |
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
SHould be "world_int_rate"