Helper function to evaluate the total effect

evaluate_total_effect(Qbarbar)