diagPlot: Diagnostic Plots for Graphical Checks of Negative Binomial...

Description Usage Arguments Value Author(s) References See Also

View source: R/diagPlot.R

Description

This function makes diagnostic plots based on the goodness-of-fit test results (an "gofm" object) from nb.gof.m: a histogram of p-values or a uniform quantile-quantile (Q-Q) plot is available.

Usage

1
diagPlot(gofm.obj, type="qq", binwidth=0.1)

Arguments

gofm.obj

an object of class "gofm" from the nb.gof.m output.

type

which diagnostic plot to make. Either qq for a uniform Q-Q plot, or hist for a histogram of p-values.

binwidth

the bin width used when drawing a histogram.

Value

A ggplot object, either a Q-Q plot (type="qq") or a histogram (type="hist").

Author(s)

Gu Mi <mig@stat.oregonstate.edu>, Yanming Di, Daniel Schafer

References

See https://github.com/gu-mi/NBGOF/wiki/ for more details.

See Also

nb.gof.m for simulated data examples.


gu-mi/NBGOF documentation built on Oct. 25, 2020, 3:30 a.m.