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

rv

Residual variance from a locfit object.


Description

As part of the locfit fitting procedure, an estimate of the residual variance is computed; the rv function extracts the variance from the "locfit" object. The estimate used is the residual sum of squares (or residual deviance, for quasi-likelihood models), divided by the residual degrees of freedom.

For likelihood (not quasi-likelihood) models, the estimate is 1.0.

Usage

rv(fit)

Arguments

fit

"locfit" object.

Value

Returns the residual variance estimate from the "locfit" object.

See Also

Examples

data(ethanol)
fit <- locfit(NOx~E,data=ethanol)
rv(fit)

locfit

Local Regression, Likelihood and Density Estimation

v1.5-9.4
GPL (>= 2)
Authors
Catherine Loader [aut], Jiayang Sun [ctb], Lucent Technologies [cph], Andy Liaw [cre]
Initial release
2020-03-24

We don't support your browser anymore

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