Skip to contents

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

  1. Identifying required columns for the naive 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 naive model object using new_epidist_naive_model() and checking it with assert_epidist()

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

Usage

# S3 method for class 'epidist_naive_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

Value

The data transformed ready for fitting.