This question already has an answer here:

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

marked as duplicate by Henri Menke, Mico math-mode Jan 17 at 4:07

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.


Just guessing…

$y_i = \beta_0 + \beta_1 x_i + \beta_2 x_i^2 + e_i$

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.