agoutiGLM: Fit an aggregated output GLM

View source: R/agouti_fit.R

agoutiGLMR Documentation

Fit an aggregated output GLM

Description

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.

Usage

agoutiGLM(
  formula,
  data,
  ID,
  inner_link = "identity",
  outer_link = "identity",
  family = stats::gaussian(),
  weights,
  ...
)

Arguments

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.

Examples

data(madagascar_malaria)

timcdlucas/agouti documentation built on Feb. 8, 2024, 6:12 p.m.