Description Usage Arguments Details Value References Examples
View source: R/homoskedasticity.R
Creates plots for examining the possible dependence of spread on level, or an extension of these plots to the studentized residuals from linear models.
1 | Spread_level_plot(fitted.value, influence_obs)
|
fitted.value |
a single numeric vector of data values |
influence_obs |
a list with following values: leverage.value, cooks.distance, studentized.residuals |
Plots abs(studentized residuals) vs. fitted values.
qqplot-object
Fox, J. (1997) Applied Regression, Linear Models, and Related Methods. Sage. Hoaglin, D. C., Mosteller, F. and Tukey, J. W. (Eds.) (1983) Understanding Robust and Exploratory Data Analysis. Wiley.
1 2 3 4 5 6 7 8 9 | ## Not run:
y_hat <- rnorm(100)
X <- (matrix(rnorm(1000), nrow = 100))
resid <- rnorm(100)
inf_obs <- olsdiagnosticR:::influence_observation(X = X, e = error)
olsdiagnosticR:::Spread_level_plot(fitted.value = y_hat,
influence_obs = inf_obs)
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.