Skip to content

Commit

Permalink
Merge pull request #20 from econ-ark:MNWtinyFixes
Browse files Browse the repository at this point in the history
Turned off death, fixed sim_birth
  • Loading branch information
alanlujan91 authored Sep 20, 2024
2 parents 4048c98 + 1539e83 commit 32fde11
Show file tree
Hide file tree
Showing 16 changed files with 106,102 additions and 1,605 deletions.
6 changes: 5 additions & 1 deletion code/estimark/agents.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
from HARK.ConsumptionSaving.ConsPortfolioModel import PortfolioConsumerType
from HARK.ConsumptionSaving.ConsWealthPortfolioModel import WealthPortfolioConsumerType
from HARK.core import AgentType
import numpy as np

# =====================================================
# Define objects and functions used for the estimation
Expand All @@ -26,7 +27,7 @@ class TempConsumerType(AgentType):
def check_restrictions(self):
return None

def simBirth(self, which_agents):
def sim_birth(self, which_agents):
"""Alternate method for simulating initial states for simulated agents, drawing from a finite
distribution. Used to overwrite IndShockConsumerType.simBirth, which uses lognormal distributions.
Expand All @@ -49,6 +50,9 @@ def simBirth(self, which_agents):
self.t_age[which_agents] = 0
# Which period of the cycle each agents is currently in
self.t_cycle[which_agents] = 0

def sim_death(self):
return np.zeros(self.AgentCount, dtype=bool)


### Overwrite sim_one_period to not have death or look up of agent ages
Expand Down
15,400 changes: 15,400 additions & 0 deletions code/estimark/content/tables/min/PortfolioDiscFac_estimate_results.csv

Large diffs are not rendered by default.

Loading

0 comments on commit 32fde11

Please sign in to comment.