group_summary_plot: A function that summarises the groups within an aggregate...

View source: R/group_summary_plot.R

group_summary_plotR Documentation

A function that summarises the groups within an aggregate output dataset, by taking quantiles, and then plots these quantiles against the response data.

Description

A function that summarises the groups within an aggregate output dataset, by taking quantiles, and then plots these quantiles against the response data.

Usage

group_summary_plot(formula, data, ID = ID, weights = 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.

weights

Which column to use as within group weights such as population or time.

Examples

data(madagascar_malaria)
group_summary_plot(case_rate ~ LSTmean, data = madagascar_malaria, ID = ID, weights = pop)

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