plotRMSE | R Documentation |
A function to plot RMSE values computed for mean difference (MD) and zero probability difference (ZPD) values between estimated and observed values.
plotRMSE(data, difference = NULL, plotIt = TRUE)
data |
a list, output of the |
difference |
character vector, either |
plotIt |
logical. Should plotting be done? (default
|
a ggplot
object.
fitModels
and RMSE
for the model
estimations and the RMSE computations respectively. plotMD
for
the graphical evaluation.
# Generate some random counts
counts = matrix(rnbinom(n = 600, size = 3, prob = 0.5), nrow = 100, ncol = 6)
# Estimate the counts assuming several distributions
GOF <- fitModels(
object = counts, models = c(
"NB", "ZINB",
"DM", "ZIG", "HURDLE"
), scale_HURDLE = c("median", "default")
)
# Plot the RMSE results
plotRMSE(data = GOF, difference = "MD")
plotRMSE(data = GOF, difference = "ZPD")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.