residuals.ldt.estim {ldt} | R Documentation |
Extract Residuals Data
Description
This function returns residuals from or calculates the standardized residuals for an ldt.estim
object.
Usage
## S3 method for class 'ldt.estim'
residuals(object, equations = NULL, standardized = FALSE, pearson = TRUE, ...)
Arguments
object |
An object of class |
equations |
A number, a numeric array or a string array specifying the equations with residual data. If |
standardized |
If |
pearson |
If |
... |
Additional arguments. |
Details
The standardized residuals have identical variance.
In order to calculate the standardized residuals, each residual is divided by where
is the standard error of residuals and
is the leverage of
-th observation.
is the weight of the
-th observation if data is weighted, and 1 otherwise.
Note that while the residuals are estimated in a system, the
is calculated in a univariate context as the
-th diagonal of
matrix, where
is the exogenous variables in the corresponding equation.
Value
A matrix containing the residuals data.