When generating terms from a formula, R seems to sometimes change the order of the variables:
> terms(~ strata:dayname:hour_local + treat_assign:dayname:hour_local) |> labels()
[1] "strata:dayname:hour_local" "dayname:hour_local:treat_assign"
Is there any way to either prevent this reordering from happening, or to map between elements in the formula and the terms?