agoutiGLM: Fit an aggregated output GLM

Description Usage Arguments Examples

View source: R/agouti_fit.R

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

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
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

1

timcdlucas/agouti documentation built on Jan. 14, 2022, 7:33 p.m.