# How can I write this AR equation in latex

How can I write this equation in Latex? I have just started out writing my first paper, and I'd appreciate any kind of help.

\documentclass{article}
$$\label{eq:AR} y_i = c + \sum_{i=1}^{p}\varphi_i y_{t-1} + \varepsilon_t = \dots$$

on showed way you should finish your equation yourself. please read some introductory text about latex, for example for math LaTeX/Mathematics