pcrGOF: Summarize measures for the goodness-of-fit

Description Usage Arguments Value Author(s) Examples

Description

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...

Usage

1
pcrGOF(object, PRESS = FALSE)

Arguments

object

a fitted object.

PRESS

logical. If TRUE, the more calculation intensive P^2 is also returned.

Value

A list with all implemented Information criteria (AIC, AICc, BIC), residual variance, root-mean-squared-error, the reduced χ_{ν}^2 from fitchisq (if replicates) and the PRESS P^2 value (if PRESS = TRUE).

Author(s)

Andrej-Nikolai Spiess

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
## 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)

qpcR documentation built on May 2, 2019, 5:17 a.m.

Related to pcrGOF in qpcR...