Closed hugomflavio closed 4 months ago
This is not currently supported, and it's... complicated. Not in the roadmap at the moment. See this post.
Ah, I was afraid that would be the answer. That post is very helpful though and will give me what I need for my very specific case. Thanks!
Hi!
I'm implementing units for some internal functions and I've stumbled upon an issue when running linear models on variables that contain units. The function
glm()
won't run at all, and whilelm()
works, asking for asummary()
will fail, andpredict()
silently drops the units. Here's a minimal example:A current work-around appears to be to drop the units prior to running the model, and then re-inserting them on the model outputs. It would be great if these functions could tolerate/carry the units along though.
Thanks for keeping this package up and running!