gof: Goodness-of-fit function for Poisson log-linear models

Description Usage Arguments Details Value Author(s) See Also Examples

Description

A goodness-of-fit function for Poisson log-linear models as required by mcexact.

Usage

1
gof(y = NULL, mu = NULL, rowlabels = FALSE)

Arguments

y

counts

mu

mean

rowlabels

labels of returned goodness-of-fit statistics

Details

This function is a useful shell for writing alternative goodness-of-fit statistics for mcexact.

Value

If rowlabels = TRUE, then gof returns only the labels of the goodness of fit statistics. Otherwise it returns the actual values as a vector.

Author(s)

Brian S. Caffo

See Also

mcexact

Examples

1
2
3
4
5
#data(residence)
#get fitted values
#mu <- glm(residence$y ~ residence$x, family = poisson)$fit
#gof(residence$y, mu)
#gof(rowlabels = TRUE)


Search within the exactLoglinTest package
Search all R packages, documentation and source code

Questions? Problems? Suggestions? or email at ian@mutexlabs.com.

Please suggest features or report bugs with the GitHub issue tracker.

All documentation is copyright its authors; we didn't write any of that.