Reputation:
I currently have some rather long inline code for producing an equation of just a simple linear regression:
lm(var1 ~ var2 + var3)
But I could have sworn at some point recently I saw some very succinct inline code to produce an equation of that model, but I seem to not have saved it. Any ideas?
Upvotes: 1
Views: 1342
Reputation: 3242
You don’t need need a package for inline equations. Just put you equation in Rmarkdown between 2 $, example below
$lm(var1 ~ var2 + var3)$
which looks like this rendered in Rmarkdown
Upvotes: 0