Skip to contents

This method transforms data into the format required by the marginal model by:

  1. Identifying required columns for the marginal model

  2. Summarising the data by counting unique combinations of these columns and any variables in the model formula using .summarise_n_by_formula()

  3. Converting the summarised data to a marginal model object using new_epidist_marginal_model()

  4. Informing the user about any data aggregation that occurred using .inform_data_summarised()

Usage

# S3 method for class 'epidist_marginal_model'
epidist_transform_data_model(data, family, formula, ...)

Arguments

data

The data to transform

family

The epidist family object specifying the distribution

formula

The model formula

...

Additional arguments passed to methods