Learn R Programming

KSPM (version 0.2.1)

rstandard.kspm: Standardized residuals for Kernel Semi parametric Model Fits

Description

computes standardized residuals for an object of class "kspm".

Usage

# S3 method for kspm
rstandard(model, ...)

Arguments

model

an model of class "kspm", usually, a result of a call to kspm.

...

furter arguments passed to or from other methods (currently unused).

Value

a vector containing the standardized residuals.

Details

Standardized residuals \(t_i\) are obtained by \(t_i = \frac{e_i}{\hat{\sigma} \sqrt{1 - h_{ii}}}\) where \(e_i\) is the residual, \(\hat{\sigma}\) is the estimated standard deviation of the errors and \(h_{ii}\) is the leverage of subject i, i.e. the i th diagonal element of the Hat matrix.

See Also

kspm for fitting model, residuals.kspm, cooks.distance.kspm, plot.kspm.