calc_gof: Calculate goodness of fit metrics

Description Usage Arguments Details Value

Description

Calculates SSE, AIC, BIC, r2, mean absolute error, and maximum absolute error for WSE-w fits.

Usage

1
calc_gof(model, type)

Arguments

model

a model fit like the result of lm

type

type of fit (if sb or nlsb, then the implementation has to change)

Details

Calculates goodness-of-fit metrics for a model with respect to the fitted values. R2 is not defined for nonlinear models, but it can be computed for a piecewise linear model Piecewise AIC and BIC are computed by summing the AIC, BIC values of the original models. I am like 90

Value

gof data frame containing SSE, AIC, BIC, r2, MAE (mean absolute error), and mAE (maximum absolute error)


jschap1/WSEw documentation built on May 12, 2019, 10:50 a.m.