I have a couple of equations from Autometrics which I want numbered but for some reason, the equation numbering always goes on the line below the equation. I would want the numbering to be somewhere in the middle of the equation or next to the last line of the equation. Below is the code for one of the equations. Thanks
\documentclass[12pt, varwidth, border=10pt]{article}
\usepackage{amsfonts}
\usepackage{amssymb}
\usepackage{amsmath}
\usepackage[onehalfspacing]{setspace}
\usepackage{geometry}
\usepackage[final]{graphicx}
\begin{document}
\begin{equation}
\begin{array}{lcl}
r_{p,t} & = &
\begin{array}[t]{r}
0.0043
\\ ^{(0.003)}
\end{array}
\ -\!\begin{array}[t]{r}
0.0068
\\ ^{(0.0019)}
\end{array}
D_{1}
\ -\!\begin{array}[t]{r}
0.0053
\\ ^{(0.0023)}
\end{array}
D_{2}
\ -\!\begin{array}[t]{r}
0.0036
\\ ^{(0.0021)}
\end{array}
D_{3}
\ -\!\begin{array}[t]{r}
0.00026
\\ ^{(0.0020)}
\end{array}
D_{4}
\ +\!\begin{array}[t]{r}
0.31
\\ ^{(0.066)}
\end{array}
R_{Mt}
\\ & &
\ +\!\begin{array}[t]{r}
0.026
\\ ^{(0.0016)}
\end{array}
\text{S}_{\text{13-Dec}}
\ -\!\begin{array}[t]{r}
0.026
\\ ^{(0.0030)}
\end{array}
\text{S}_{\text{16-Dec}}
\end{array}
\end{equation}
\end{document}
array
here?