Skip to content

Commit

Permalink
Merge pull request #86 from jdebacker/demog
Browse files Browse the repository at this point in the history
Merging
  • Loading branch information
rickecon authored Feb 8, 2024
2 parents 1982230 + dcbe46b commit 7a6757b
Show file tree
Hide file tree
Showing 4 changed files with 27 additions and 895 deletions.
21 changes: 17 additions & 4 deletions ogusa/calibrate.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
from ogusa import estimate_beta_j, bequest_transmission, demographics
from ogusa import estimate_beta_j, bequest_transmission
from ogusa import macro_params, transfer_distribution, income
from ogusa import get_micro_data, psid_data_setup
import os
import numpy as np
from ogcore import txfunc
from ogcore import txfunc, demographics
from ogcore.utils import safe_read_pickle, mkdirs
import pkg_resources

Expand Down Expand Up @@ -58,11 +58,24 @@ def __init__(

# demographics
self.demographic_params = demographics.get_pop_objs(
p.E, p.S, p.T, 1, 100, p.start_year - 1, p.start_year
p.E,
p.S,
p.T,
0,
99,
initial_data_year=p.start_year - 1,
final_data_year=p.start_year,
)

# demographics for 80 period lives (needed for getting e below)
demog80 = demographics.get_pop_objs(
20, 80, p.T, 1, 100, p.start_year - 1, p.start_year
20,
80,
p.T,
0,
99,
initial_data_year=p.start_year - 1,
final_data_year=p.start_year,
)

# earnings profiles
Expand Down
Loading

0 comments on commit 7a6757b

Please sign in to comment.