View source: R/residdiagnostics.R
res.diagnostics | R Documentation |
At least seven plots can be produced in one panel. This function prints out a table with plots similar to the one generated by SAS as well as one by one diagram describing and analyzing the residuals from a linear regression.
res.diagnostics( lm_obj, block = F, outliers = F, normality = F, outnorm = T, regressors = F )
block |
|
outliers |
|
normality |
|
outnorm |
|
regressors |
|
lmobject |
a fitted regression model from |
library(regkurs) lmfit = lm(nRides ~ temp + hum + windspeed, data = bike) res.diagnostics(lmfit) #6 plots together res.diagnostics(lmfit,block=T)#all the plots in one panel res.diagnostics(lmfit,outliers=T)#only the first three plots regarding residuals, studentized residuals res.diagnostics(lmfit,normality=T)#only three plots regarding normality and fitting res.diagnostics(lmfit,outnorm = F)#all plots one by one res.diagnostics(lmfit,regressors=T)#show only the relationship between the residuals and each regressor included in lm()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.