fit_diags function

Calculate diagnostic information for object of class fit_result.