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

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

.

1 |

`y` |
counts |

`mu` |
mean |

`rowlabels` |
labels of returned goodness-of-fit statistics |

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

.

If `rowlabels = TRUE`

, then `gof`

returns only the labels of the
goodness of fit statistics. Otherwise it returns the actual values as
a vector.

Brian S. Caffo

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)
``` |

Embedding an R snippet on your website

Add the following code to your website.

For more information on customizing the embed code, read Embedding Snippets.