
Transform data for the marginal model
Source:R/marginal_model.R
epidist_transform_data_model.epidist_marginal_model.Rd
This method transforms data into the format required by the marginal model by:
Identifying required columns for the marginal model
Summarising the data by counting unique combinations of these columns and any variables in the model formula using
.summarise_n_by_formula()
Converting the summarised data to a marginal model object using
new_epidist_marginal_model()
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, ...)
See also
Other marginal_model:
as_epidist_marginal_model()
,
as_epidist_marginal_model.epidist_aggregate_data()
,
as_epidist_marginal_model.epidist_linelist_data()
,
epidist_family_model.epidist_marginal_model()
,
epidist_formula_model.epidist_marginal_model()
,
is_epidist_marginal_model()
,
new_epidist_marginal_model()