Description Usage Arguments Details Value See Also Examples
Function to plot some godness of fit indicators for regression results
1 | plot_goodnessOfFit(predicted, observed, plotIt = TRUE, combine = TRUE)
|
predicted |
vector of predicted values |
observed |
vector of observed values |
plotIt |
If TRUE, plots are printed, if FALSE, they are only returned. |
combine |
If TRUE, all plots are combined before, if FALSE, a list of individual plots is returned. |
For details on the goodness of fit measures, see calc_goodnessOfFit
The plots contain the following information:
Predicted vs observed values
scatterplot of predicted over observed values.
Blue line indicates perfect fit, red line indicates best
fit to data. For the meaning of performance measures,
see calc_goodnessOfFit
.
Distribution of residuals
density plot of the distribution of residuals (red area)
with best fit gaussian (black dashed line).
Blue line at x=0, red line for mean of residuals.
For the meaning of performance measures,
see calc_goodnessOfFit
.
qqplot
standard qqplot. See qqnorm
.
Residuals over observed values
Scatterplot of residuals over observed values. Blue line at 0. Red line for best fit to data.
Residuals over order
Scatterplot of residuals over order (in case of timeseries: time). Red area indicates the 3 sigma interval around the mean of the residuals.
a plot (combine = TRUE) or a list of plots (combine = FALSE)
1 | test <- plot_goodnessOfFit(predicted = 1:10 + rnorm(10,0,0.3), observed = 1:10)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.