Skip to contents

This function is used within epidist() to transform data before passing to brms. It dispatches to epidist_transform_data_model(), which is the generic a custom model implements. This wrapper is internal; extensions should write a method for epidist_transform_data_model() instead.

Usage

epidist_transform_data(data, family, formula, ...)

Arguments

data

An object with class corresponding to an implemented model.

family

A description of the response distribution and link function to be used in the model created using epidist_family().

formula

A formula object created using epidist_formula().

...

Additional arguments passed to fn method.