Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

resVar

Residual variance of a fitted model


Description

Calculates the residual variance for objects of class nls, lm, glm, drc or any other models from which coef and residuals can be extracted.

Usage

resVar(object)

Arguments

object

a fitted model.

Details

resVar = \frac{∑_{i=1}^n(y_i - \hat{y}_i)^2}{n - p}

where n is the number of response values and p the number of parameters in the model.

Value

The residual variance of the fit.

Author(s)

Andrej-Nikolai Spiess

Examples

m1 <- pcrfit(reps, 1, 2, l5)
resVar(m1)

qpcR

Modelling and Analysis of Real-Time PCR Data

v1.4-1
GPL (>= 2)
Authors
Andrej-Nikolai Spiess <a.spiess@uke.uni-hamburg.de>
Initial release
2018-05-29

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.