agoutiGLM | R Documentation |
This function has flexibility for link functions both inside and outside the aggregation step as well as a variety of error models. The models are fitted with maximum likelihood and confidence intervals are given using the normal approximation to the likelihood surface.
agoutiGLM(
formula,
data,
ID,
inner_link = "identity",
outer_link = "identity",
family = stats::gaussian(),
weights,
...
)
formula |
A formula for the y and x variables. |
data |
A data frame suitable for aggregate outputs models. |
ID |
The column to use as the group ID column. Unquoted value. |
inner_link |
A character defining the inner link function. |
outer_link |
A character defining the outer link function. |
family |
The error distribution defined with a family object or character. |
weights |
Which column to use as within group weights such as population or time. |
... |
Further parameters. Currently unused. |
data(madagascar_malaria)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.