Learn R Programming

qpcR (version 1.2-2)

pcrGOF: Summarize measures for the goodness-of-fit

Description

Calculates all implemented measures for the goodness-of-fit and returns them as a list. Works for objects of class pcrfit, drc, lm, glm, nls and many others...

Usage

pcrGOF(object, PRESS = FALSE)

Arguments

object
a fitted object.
PRESS
logical. If TRUE, the more calculation intensive P-square is also returned.

Value

  • A list with the following components:
  • Rsqthe R-squared value.
  • Rsq.adthe adjusted R-squared value.
  • AICthe Akaike Information Criterion.
  • AICcthe bias-corrected Akaike Information Criterion.
  • BICthe Bayesian Information Criteron.
  • resVarthe residual variance.
  • RMSEthe root-mean-squared-error.
  • P.squarethe PRESS P-square, if PRESS = TRUE.

Examples

Run this code
m <- pcrfit(reps, 1, 2, l5)
pcrGOF(m, PRESS = TRUE)

Run the code above in your browser using DataLab