check_margin

check_margin()[source]

Check consistency between net cashflow and margins

Returns True if net_cf() equates to the sum of margin_expense() and margin_mortality() for all t, otherwise, returns False.