plotMD {benchdamic} | R Documentation |
A function to plot mean difference (MD) and zero probability difference (ZPD) values between estimated and observed values.
plotMD(data, difference = NULL, split = TRUE)
data |
a list, output of the |
difference |
character vector, either |
split |
Display each model mean differences in different facets
(default |
a ggplot
object.
fitModels
and RMSE
for the model
estimations and the RMSE computations respectively. plotRMSE
for the graphical evaluation of the RMSE values.
# Generate some random counts counts = matrix(rnbinom(n = 60, size = 3, prob = 0.5), nrow = 10, ncol = 6) # Estimate the counts assuming several distributions GOF <- fitModels( counts = counts, models = c( "NB", "ZINB", "DM", "ZIG", "HURDLE" ), scale_ZIG = c("median", "default"), scale_HURDLE = c("median", "default") ) # Plot the results plotMD(data = GOF, difference = "MD", split = TRUE) plotMD(data = GOF, difference = "ZPD", split = TRUE)