Description Usage Arguments Examples
View source: R/lm_diagnostics.R
Check assumptions of heteroscedasticity and normally distributed errors for a linear regression model fit.
1 | lm_diagnostics(lmObj, outcomeString = "Outcome", titleString)
|
lmObj |
Model fit of class 'lm'. |
outcomeString |
String to identify outcome in X axis label. Defaults to "Outcome." |
titleString |
String to add to plot titles. |
1 2 3 4 | ## Linear regression model
mymod <- lm(Sepal.Width ~ Sepal.Length, data = iris)
lm_diagnostics(mymod, outcomeString = 'Sepal.Width', titleString = 'Sepal.Width vs Sepal.Length')
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.