gof {spaMM} | R Documentation |
Goodness of fit test
Description
Performs a test of goodness of fit. The only method implemented so far is based on randomized quantile residuals (Dunn & Smyth, 1996).
Usage
gof(object, method = "RQR", ...)
Arguments
object |
A fit object inheriting from class |
method |
Character string; a method of test of goodness of fit. |
... |
Further arguments possibly passed to internal methods. |
Value
Returns the value of a call to shapiro.test
(“a list with class "htest"
”) with added element RQR
, itself a list including the randomized residuals.
References
Dunn, K. P., and Smyth, G. K. (1996). Randomized quantile residuals. Journal of Computational and Graphical Statistics 5, 1-10.
Examples
data("Orthodont", package = "nlme")
sp1 <- fitme(distance ~ age * Sex + (1 | Subject), data = Orthodont)
gof(sp1) # classic toy example, but poor fit.
[Package spaMM version 4.6.1 Index]