| gof | R Documentation |
trim computes three goodness-of-fit measures:
Chi-squared
Likelihood ratio
Akaike Information content
gof(x)
## S3 method for class 'trim'
gof(x)
x |
an object of class |
a list of type "trim.gof", containing elements chi2, LR
and AIC, for Chi-squared, Likelihoof Ratio and Akaike informatiuon content,
respectively.
Other analyses:
coef.trim(),
confint.trim(),
index(),
now_what(),
overall(),
overdispersion(),
plot.trim.index(),
plot.trim.overall(),
plot.trim.smooth(),
results(),
serial_correlation(),
summary.trim(),
totals(),
trendlines(),
trim(),
vcov.trim(),
wald()
data(skylark)
z <- trim(count ~ site + time, data=skylark, model=2)
# prettyprint GOF information
gof(z)
# get individual elements, e.g. p-value
L <- gof(z)
LR_p <- L$LR$p # get p-value for likelihood ratio
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.