plot_goodnessOfFit: plot_GoodnessOfFit

Description Usage Arguments Details Value See Also Examples

Description

Function to plot some godness of fit indicators for regression results

Usage

1
plot_goodnessOfFit(predicted, observed, plotIt = TRUE, combine = TRUE)

Arguments

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.

Details

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.

Value

a plot (combine = TRUE) or a list of plots (combine = FALSE)

See Also

calc_goodnessOfFit

Examples

1
test <- plot_goodnessOfFit(predicted = 1:10 + rnorm(10,0,0.3), observed = 1:10)

MarkusBonsch/mxLSTM documentation built on May 28, 2019, 6:40 a.m.