datalorax / equatiomatic

Convert models to LaTeX equations
https://datalorax.github.io/equatiomatic/
Creative Commons Attribution 4.0 International
617 stars 43 forks source link

a variable name picked up as an operator: exper as \exper #209

Open eyayaw opened 2 years ago

eyayaw commented 2 years ago

lm(lwage~exper+educ+feduc, wooldridge::wage2) |> equatiomatic::extract_eq(use_coefs = TRUE)

$$ \operatorname{\widehat{lwage}} = 5.44 + 0.02(\operatorname{\exper}) + 0.07(\operatorname{educ}) + 0.02(\operatorname{feduc}) $$

datalorax commented 2 years ago

Ah... thanks for the report. I'll get this fixed (eventually - I'm not actively working on this at the moment).