-
Notifications
You must be signed in to change notification settings - Fork 5
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
make tracked macro variables and history available from the AgentPopulation #36
Comments
|
The variables are now all being tracked using the |
The method that currently does this for other 'macro' variables is https://github.com/sbenthall/HARK_ABM_INTRO_public/blob/master/HARK/hark_portfolio_agents.py#L169 You can see what it does: it uses the agent's parameters as elements in a dataframe record, then groups the dataframe records by the relevant parameters (CRRA and DiscFac) I think taking the mean and standard deviation makes sense for aggregation. |
This is actually more of a feature for the new Population class as it's about exposing macro agent statistics. |
Hi @alanlujan91 -- tossing this issue your way since it looks like it's really about functionality for the AgentPopulation. The HARK AgentType can track the variables of its agents and provide them in a history object. Does the AgentPopulation class support analogous functionality? How could it? If it did, we could pass that through to the simulation output. |
question is how to aggregate over the many HARK agents....
Plot these in the notebook output to get a sense of the macro dynamics
The text was updated successfully, but these errors were encountered: