Residuals for ols
Computes various residuals and measures of influence for a
## S3 method for class 'ols': residuals(object, type=c("ordinary", "score", "dfbeta", "dfbetas", "dffit", "dffits", "hat", "hscore"), ...)
- object created by
ols. Depending on
type, you may have had to specify
- type of residual desired.
"ordinary"refers to the usual residual.
"score"is the matrix of score residuals (contributions to first derivative of log likelihood).
dfbetasmean respectively th
- a matrix or vector, with places for observations that were originally
set.seed(1) x1 <- rnorm(100) x2 <- rnorm(100) x1 <- 100 y <- x1 + x2 + rnorm(100) f <- ols(y ~ x1 + x2, x=TRUE, y=TRUE) resid(f, "dfbetas") which.influence(f)
Looks like there are no examples yet.