Description Usage Arguments Value Examples
View source: R/homoscedasticity.R
This function recieves a linear regression model and outputs a scatter plot figure of residuals plotted against fitted values. It prints a statement indicating the results of the homoscedasticity test and outputs a dataframe containing spearman correlation coefficients between the absolute residuals and the fitted y values.
1 | homoscedasticity(data, formula, threshold = 0.05)
|
data |
a dataframe containing regression data |
formula |
a formula in the format "y ~ x1 + x2 + ..." indicating regression variables |
threshold |
a float indicating rejection threshold of correlation coefficient |
a plot of predicted values vs residuals and the correlation p value
1 2 3 4 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.