econ-ark / darkolo Goto Github PK
View Code? Open in Web Editor NEWfusion projects combining of Dolo/DolARK and Econ-ARK
fusion projects combining of Dolo/DolARK and Econ-ARK
The Life Cycle model from these notes:
https://llorracc.github.io/SolvingMicroDSOPs/
Can be solved with HARK.
In principle, it can be solved in Dolo.
This implicates this question of dolo syntax:
EconForge/dolo.py#208
A dolo version of this is what's needed to investigate if dolo's method of representing this would be satisfactory to CDC.
correct .py file from ipynb if it has not already been done for work for #22
Error in BufferStock python code.
I'm getting this error both when running:
$ ipython BufferStock.py
and when runnign
$ jupytext --to notebook BufferStock.py
and then opening the notebook with Jupyter.
In cell 5, # Set a maximum value of the market resources ratio m for use in both models
---------------------------------------------------------------------------
IndexError Traceback (most recent call last)
<ipython-input-5-e81ae8575e02> in <module>
5
6 # Obtain the decision rule by time iteration
----> 7 dr = time_iteration(model_dolo,tol=1e-08,verbose=True)
~/projects/econ-ark/dolo/dolo/algos/time_iteration.py in time_iteration(model, dr0, dprocess, with_complementarities, verbose, grid, maxit, inner_maxit, tol, hook, details)
84 n_s = len(model.symbols['states'])
85
---> 86 endo_grid = model.get_grid(**grid)
87
88 exo_grid = dprocess.grid
~/projects/econ-ark/dolo/dolo/compiler/model.py in get_grid(self)
190 # determine bounds:
191 domain = self.get_domain()
--> 192 min = domain.min
193 max = domain.max
194
~/projects/econ-ark/dolo/dolo/compiler/objects.py in min(self)
27 @property
28 def min(self):
---> 29 return np.array([self[e][0] for e in self.states])
30
31 @property
~/projects/econ-ark/dolo/dolo/compiler/objects.py in <listcomp>(.0)
27 @property
28 def min(self):
---> 29 return np.array([self[e][0] for e in self.states])
30
31 @property
IndexError: too many indices for array
Originally from #14
Add to the BST chimera a python script that generates the object created by the dolang compiler when it parses the BST YAML.
Improvements to the BufferStock DARKolo:
This completes the BufferStock section of this issue:
econ-ark/HARK#414
A chimera for the PerfectForesight model, "almost the simplest consumption model".
Currently uses older version of HARK
We should have a clickable link for launching the qModel notebook, as for example in the README at
(from econ-ark/HARK#414 )
I've been thinking about the practicalities of how we might keep track of functions of arbitrary numbers of discrete and continuous dimensions, and wanted to make a proposal intended to start a conversation on that subject.
This is not meant as a concrete proposal, more as just an initial set of thoughts meant to provoke a discussion.
From @llorracc
A high priority from my point of view is working out an expanded Dolo/DolARK syntax so that we can capture:
- "Cycles" in which the agents solve a different problem in each subperiod
- Finite Horizons specification of the SolvingMicroDSOPs life cycle model that has age-varying magnitudes of transitory and permanent shocks, income growth, and other inputs
- "Absolute time" A way to make reference to some absolute time (like, what year is it, in addition to what age am I). This is much less important, and if hard to do could be dropped
- Conventions for how to keep track of agents who are "ex-ante" heterogeneous so that we can develop tools for handling such populations efficiently.
We should probably move a summary of this discussion to GitHub so it will be easy to track down in the future when we need to reference it.
Bufferstock DARKolo model is not printing the dolo version into rendered LaTeX in notebook in Seb's local setup.
Aiyagari '94 model
CDC students are working on this already for getting into HARK.
Dolark ?? β¦
(from econ-ark/HARK#414 )
@llorracc I'm confused about the parameterization of the buffer stock model here.
The original paper, and the REMARK, both explicitly model unemployment shocks.
This chimera
notebook says "The unemployment (zero-income event) shocks are turned off". This is consistent with the equations given but not consistent with the parameters given in the first table or in the HARK model code, which still have the ππππππΏππ
and πΈπππππππ
variables.
There is also a note that "An explicit liqudity constraint is added (ctβ€mtctβ€mt); that is, the consumer is prohibited from borrowing". But I don't believe this constraint is written into the equations above this line.
My reading is that the "For the purposes of this notebook..." section is meant to override what comes prior to it and was perhaps added without editing other code brought in from other sources. But I wanted to double check that I understood the intended model before making edits accordingly and bringing in simulation code.
It redirects to main page.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. πππ
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google β€οΈ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.