Implementation of leverage calculation/plots

For other non-linear methods