Description Usage Arguments Details Value Author(s) Examples

Given a covariate, calculate the observed and expected counts for each unique value of the covariate. This can be a useful goodness of fit check for DSMs.

1 |

`model` |
a fitted |

`covar` |
covariate to aggregate by (character) |

`cut` |
vector of cut points to aggregate at. If not supplied, the unique values of |

One strategy for model checking is to calculate observed and expected counts at different aggregations of the variable. If these match well then the model fit is good.

`data.frame`

with values of observed and expected counts.

David L Miller, on the suggestion of Mark Bravington.

1 2 3 4 5 6 7 8 |

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.