Skip to content

augment.mdl_df doesn't work when a mixed model is present #237

Description

@tanner-ellison

augment.mdl_df doesn't work when a mixed model is present

tsibbledata::olympic_running %>% 
aggregate_key(Length * Sex, Time = mean(Time)) %>%
model(mean = MEAN(Time), naive = NAIVE(Time)) %>% 
mutate(mixed = (mean + naive) / 2) %>%
augment()

Error : Can't combine `mean` <lst_mdl> and `mixed` <lst_mdl>.
✖ Some attributes are incompatible.
ℹ The author of the class should implement vctrs methods.
ℹ See <https://vctrs.r-lib.org/reference/faq-error-incompatible-attributes.html>.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

bugSomething isn't working

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions