Learn R Programming

qpcR (version 1.3-7.1)

RSS: Residual sum-of-squares of a fitted model

Description

Calculates the residual sum-of-squares for objects of class nls, lm, glm, drc or any other models from which residuals can be extacted. From version 1.3-6, this function uses weights, if object has an item $weights.

Usage

RSS(object)

Arguments

object
a fitted model.

Value

  • The (weighted) residual sum-of-squares from the fit.

Details

$$RSS = \sum_{i=1}^{n}w_i \cdot (y_i-\hat{y_i})^2$$

Examples

Run this code
m1 <- pcrfit(reps, 1, 2, l5)
RSS(m1)

Run the code above in your browser using DataLab