Skip to content

Commit

Permalink
estimark
Browse files Browse the repository at this point in the history
  • Loading branch information
alanlujan91 committed Jan 25, 2024
1 parent c8649b6 commit 0b5dfb8
Show file tree
Hide file tree
Showing 16 changed files with 600 additions and 600 deletions.
4 changes: 2 additions & 2 deletions code/do_all.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,13 +46,13 @@
still run.
"""

from code.calibration.options import (
from estimark.calibration.options import (
all_replications,
high_resource,
low_resource,
medium_resource,
)
from code.estimation import estimate
from estimark.estimation import estimate


# Ask the user which replication to run, and run it:
Expand Down
2 changes: 1 addition & 1 deletion code/do_figs.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from code.estimation import estimate_all
from estimark.estimation import estimate_all

if __name__ == "__main__":
estimate_all()
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@
)

# Age-varying discount factors over the lifecycle, lifted from Cagetti (2003)
DiscFac_timevary = np.genfromtxt("../data/Cagetti2003.csv")
DiscFac_timevary = np.genfromtxt("code/estimark/data/Cagetti2003.csv")

# Survival probabilities over the lifecycle
liv_prb = parse_ssa_life_table(
Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
Sets up the SCF data for use in the SolvingMicroDSOPs estimation.
"""

from code.calibration.estimation_parameters import (
from estimark.calibration.estimation_parameters import (
empirical_cohort_age_groups,
initial_age,
)
Expand All @@ -11,7 +11,7 @@
import pandas as pd


scf_data = pd.read_csv("code/data/SCFdata.csv")
scf_data = pd.read_csv("code/estimark/data/SCFdata.csv")

# Keep only observations with normal incomes > 0,
# otherwise wealth/income is not well defined
Expand Down
File renamed without changes.
File renamed without changes.
6 changes: 3 additions & 3 deletions code/estimation.py → code/estimark/estimation.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,10 @@
"""

# Parameters for the consumer type and the estimation
import code.calibration.estimation_parameters as parameters
import code.calibration.setup_scf_data as scf_data # SCF 2004 data on household wealth
import estimark.calibration.estimation_parameters as parameters
import estimark.calibration.setup_scf_data as scf_data # SCF 2004 data on household wealth
import csv
from code.agents import (
from estimark.agents import (
BequestWarmGlowLifeCycleConsumerType,
BequestWarmGlowLifeCyclePortfolioType,
IndShkLifeCycleConsumerType,
Expand Down
214 changes: 107 additions & 107 deletions code/notebooks/IndShock.ipynb

Large diffs are not rendered by default.

248 changes: 124 additions & 124 deletions code/notebooks/Portfolio.ipynb

Large diffs are not rendered by default.

212 changes: 106 additions & 106 deletions code/notebooks/WarmGlow.ipynb

Large diffs are not rendered by default.

252 changes: 126 additions & 126 deletions code/notebooks/WarmGlowPortfolio.ipynb

Large diffs are not rendered by default.

252 changes: 126 additions & 126 deletions code/notebooks/WealthPortfolio.ipynb

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions code/tests.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
from code.calibration.options import low_resource, medium_resource
from code.estimation import estimate
from estimark.calibration.options import low_resource, medium_resource
from estimark.estimation import estimate


def test_low_resource():
Expand Down

0 comments on commit 0b5dfb8

Please sign in to comment.