Calculates all implemented measures for the goodness-of-fit and returns them as a list.
Works for objects of class pcrfit
, lm
, glm
, nls
, drc
and many others...
pcrGOF(object, PRESS = FALSE)
a fitted object.
logical. If TRUE
, the more calculation intensive
A list with all implemented Information criteria (AIC, AICc, BIC
), residual variance, root-mean-squared-error, the reduced fitchisq
(if replicates) and the PRESS
PRESS = TRUE
).
# NOT RUN {
## Single fit without replicates
## including PRESS statistic.
m1 <- pcrfit(reps, 1, 2, l5)
pcrGOF(m1, PRESS = TRUE)
## Fit containing replicates:
## calculation of reduced
## chi-square included!
m2 <- pcrfit(reps, 1, 2:5, l5)
pcrGOF(m2)
# }
Run the code above in your browser using DataLab