Replies: 1 comment
-
A common approach would involve the following steps:
Here are simplified examples for the steps above: @mx.defcells
def model_point_table():
# Assuming model_point_table.csv is in the same directory as the model.
return pd.read_csv(_model.path.parent / "model_point_table.csv") space.parameters = ("policy_id",) # Assuming your space is assigned to 'space'. @mx.defcells
def issue_age():
return model_point_table().loc[policy_id, "issue_age"] print(space[3].premiums(10)) # Get the premiums of Policy 3 at time 10 and print it out. I think examining simple models in lifelib, such as BasicTerm_S in the basiclife library is helpful. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I have created a model that works well for individual policy reserve calculations, I now want to run the model acrosss multiple policies. How do I go about , I need to store all the cashflows at each time e.g premiums, benefits for each of the policies
Beta Was this translation helpful? Give feedback.
All reactions