gof: Extract TRIM goodness-of-fit information.

Description Usage Arguments Value See Also Examples

View source: R/trim_gof.R

Description

trim computes three goodness-of-fit measures:

Usage

1
2
3
4
gof(x)

## S3 method for class 'trim'
gof(x)

Arguments

x

an object of class trim (as returned by trim)

Value

a list of type "trim.gof", containing elements chi2, LR and AIC, for Chi-squared, Likelihoof Ratio and Akaike informatiuon content, respectively.

See Also

Other analyses: coef.trim(), confint.trim(), index(), now_what(), overall(), overdispersion(), plot.trim.index(), plot.trim.overall(), results(), serial_correlation(), summary.trim(), totals(), trim(), vcov.trim(), wald()

Examples

1
2
3
4
5
6
7
8
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

rtrim documentation built on April 21, 2020, 5:06 p.m.