predictor_effect_plot function

Plot the effect of a predictor variable