File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -1085,8 +1085,7 @@ def model_fit_table(
10851085 model_val = tpi_output ["r" ][t ]
10861086 elif target_desc == r"Capital share of output" :
10871087 model_val = (
1088- 1
1089- - tpi_output ["r" ][t ] * tpi_output ["K" ][t ] / tpi_output ["Y" ][t ]
1088+ 1 - tpi_output ["w" ][t ] * tpi_output ["L" ][t ] / tpi_output ["Y" ][t ]
10901089 )
10911090 elif target_desc == r"Labor share of output" :
10921091 model_val = (
@@ -1135,12 +1134,9 @@ def model_fit_table(
11351134 model_val = ineq .gini ()
11361135 # Demographic moments
11371136 elif target_desc == r"Fraction 65+" :
1138- model_val = (
1139- params .omega [
1140- t , - 35 :
1141- ].sum () # NOTE: not flexible with S, E changes
1142- / params .omega [t ].sum ()
1143- )
1137+ idx_65 = max (0 , 65 - params .starting_age )
1138+ omega_t = params .omega [t ]
1139+ model_val = omega_t [idx_65 :].sum () / omega_t .sum ()
11441140 elif target_desc == r"Pop growth rate" :
11451141 model_val = params .g_n [t ]
11461142 else :
You can’t perform that action at this time.
0 commit comments