Description Usage Arguments Value Author(s) See Also Examples
Calculates studentized residuals using
t_i = \frac{\hat{\varepsilon}_{i}}{\hat{σ}_{\varepsilon}^{2} √{1 - h_{ii}}}
1 | tepsilonhat(X, y)
|
X |
|
y |
Numeric vector of length |
Returns studentized residuals.
Ivan Jacob Agaloos Pesigan
Other residuals functions:
.My()
,
.tepsilonhat()
,
.yminusyhat()
,
My()
,
epsilonhat()
,
yminusyhat()
1 2 3 4 5 6 7 8 9 10 11 12 13 | # Simple regression------------------------------------------------
X <- jeksterslabRdatarepo::wages.matrix[["X"]]
X <- X[, c(1, ncol(X))]
y <- jeksterslabRdatarepo::wages.matrix[["y"]]
tepsilonhat <- tepsilonhat(X = X, y = y)
hist(tepsilonhat)
# Multiple regression----------------------------------------------
X <- jeksterslabRdatarepo::wages.matrix[["X"]]
# age is removed
X <- X[, -ncol(X)]
tepsilonhat <- tepsilonhat(X = X, y = y)
hist(tepsilonhat)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.