GOF | R Documentation |
Includes a number of common goodness of fit measures to compare different GRT models.
GOF(grtMod, teststat = "X2", observed = NULL)
grtMod |
a |
teststat |
a string indicating which statistic to use in the test. May be one of the following:
|
observed |
optional, to provide a matrix of observed frequencies if no fit conducted. |
data(thomas01a)
fit1 <- fit.grt(thomas01a)
fit2 <- fit.grt(thomas01a, PI = 'same_rho')
# Take the model with the lower AIC
GOF(fit1, teststat = 'AIC')
GOF(fit2, teststat = 'AIC')
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.