Lambda Issue
Closed this issue · 2 comments
SolemnShark871 commented
7 people have 0 for lambda (after doing log likelihood MLE per age range)
SolemnShark871 commented
For the last window, the maximum age is outside the window, so when you do <= max, you cut off some of the people
From line 23:
else: data_series[f'WINDOW_{i}'] = df[column].where(((df['EDAD'] >= lower_limit) & (df['EDAD'] <= max(df['EDAD']))))
SolemnShark871 commented
Fixed by Favio