step_dummy()
doesn't capture contrasts
#1349
Labels
bug
an unexpected problem or unintended behavior
step_dummy()
doesn't capture contrasts
#1349
step_dummy()
doesn't capture contrasts, thus won't workbake()
if contrasts option if different betweenprep()
andbake()
time.Everything works up and until now. But
rec_normal()
was prepped usingcontr.treatment
so it breaks when used incontr.helmet
I could imagine that this will break some production applications, where prepping was done using
contr.poly
, but the prediction environment (vetiver as an example) would have no idea.Suggested fix
I think this bug give enough motivation to add a contrast argument to
step_dummy()
such that:The text was updated successfully, but these errors were encountered: