# Before actually applying the Chain Ladder technique it is necessary to check
# wether the triangle has Calendar Year Effect
# Apply the function to the triangle and save the output into the variable test
test <- cyEffTest(RAA)
# Plot the confidence interval and the test metric
plot(test)
# The metric is within the confidence interval, therefore the triangle doesn't
# have Calendar Year Effect
# Print the summary table
summary(test)
# Print only the main outcomes
print(test)
# The test has returned a negative outcome. This means that the triangle is
# not affected by Caledar Year Effect and therefore the chain ladder method
# can be applied.
Run the code above in your browser using DataLab