0

I'm a beginner of using R and Latex. Just wonder how to write yi = β0 + β1xi + β2x2i + ei by using Latex?

2

Just guessing…

\documentclass{article}
\begin{document}
$y_i = \beta_0 + \beta_1 x_i + \beta_2 x_i^2 + e_i$
\end{document}

enter image description here

  • Thank you so much, but the console board showed Error: unexpected '$' in "$" – Louis Jan 17 at 4:03
  • @Louis The example I posted typesets without errors. Maybe try google.com/search?q=latex+in+r – Henri Menke Jan 17 at 4:07

Not the answer you're looking for? Browse other questions tagged or ask your own question.