Learn R Programming

iccCounts (version 1.1.2)

plot.GOF: Goodness of fit plots

Description

Draws the plots to assess the goodness of fit

Usage

# S3 method for GOF
plot(x, type = c("all", "envelope", "dispersion", "zeros"), ...)

Arguments

x

An object of class GOF generated by GOF_check function.

type

Which plot to draw. Values: all (default); envelope for envelopes of randomized quantile residuals; dispersion for plot to assess the dispersion; zeros for plot to assess the zero inflation.

...

Ignore

See Also

GOF_check()

Examples

Run this code
# \donttest{
# Poisson model. Repeatability setting.
iccpois<-icc_counts(EPP,y="Social",id="id")
iccpois.gof<-GOF_check(iccpois)
plot(iccpois.gof)
plot(iccpois.gof,type="envelope")
plot(iccpois.gof,type="dispersion")
plot(iccpois.gof,type="zeros")
# }

Run the code above in your browser using DataLab