Rsq {qpcR} | R Documentation |
R-square value of a fitted model
Description
Calculates the value for objects of class
nls
, lm
, glm
, drc
or any other models from which fitted
and residuals
can be extracted. Since version 1.2-9 it calculates a weighted if the object has an item
object$weights
containing weighting values.
Usage
Rsq(object)
Arguments
object |
a fitted model. |
Details
Uses the most general definition of :
where
and
using the weighted mean
Value
The value of the fit.
Author(s)
Andrej-Nikolai Spiess
Examples
m1 <- pcrfit(reps, 1, 2, l5)
Rsq(m1)
[Package qpcR version 1.4-1 Index]