If you create a eip_workflow using an epi_df that has been grouped by geo_value (or any epi_key), instead of generating a model per geo, you get one model with the geo_value treated as a dummy variable (so one indicator per unique value). This is equivalent to adding a step_dummy(geo_value) as a step.
If we want to keep and/or support this, we should make sure to document it, along with how to get a model per-geo.
after discussion with @lcbrooks, this was mostly caused by some confusion on my part. Dropping add_role(all_of(epi_keys(x)), new_role = "predictor") makes it no longer include a dummy predictor for geo_value
If you create a eip_workflow using an
epi_df
that has been grouped bygeo_value
(or anyepi_key
), instead of generating a model per geo, you get one model with the geo_value treated as a dummy variable (so one indicator per unique value). This is equivalent to adding astep_dummy(geo_value)
as a step.If we want to keep and/or support this, we should make sure to document it, along with how to get a model per-geo.
Example:
returns