GOF_check {iccCounts}R Documentation

Goodness of fit for GLMM

Description

Assessment of goodness of fit for GLMM

Usage

GOF_check(x, nsim = 100, alpha = 0.05)

Arguments

x

An object of clas iccc.

nsim

Number of simulations to run. Default is set to 100.

alpha

Level of significance

Details

Randomized quantile residuals are computed for the fitted model. Simulations based on the fitted model are generated and the model is refitted to each simulated dataset. Envelopes for RQR are built as the appropriate quantile (in relation to the level fo significance) of RQR from the refitted models. Additionally, a test for dispersion and zero inflation are carried out by comparing the RQR dispersion and the number of zeros from the original model and data to those from the refitted models and simulated data.

Value

An object of class GOF for which method plot is available. A list with the following components:

See Also

plot.GOF(), DispersionTest(),ZeroTest()

Examples


# Poisson model. Repeatability setting.
iccpois<-icc_counts(EPP,y="Social",id="id")
GOF_check(iccpois)
# Zero-inflated Poisson model. Repeatability setting
icczip<-icc_counts(EPP,y="Social",id="id",fam="zip")
GOF_check(icczip)


[Package iccCounts version 1.1.2 Index]