
Escribí las ecuaciones y logro alinear la regresión, pero los números se muestran debajo de la regresión. ¿Cómo puedo alinearlo a la derecha?
este es el código que estoy usando:
\begin{equation}
\label{reg5}
\begin{align}
\begin{small}PRODUCTION_{i,t} = b_0 + b_1FORECAST_{i,t} + b_2PEER\_FORECAST_{i,t} +
b_3FORECAST_{i,t} * CEO\_TURNOVER_{t-1} +
b_4PEER\_FORECAST_{i,t} * CEO\_TURNOVER_{t-1} + b_5UNEMP_{t-1} +
b_6HORIZON_t\end{small}
\end{align}
\end{equation}
¿Alguien puede ayudarme con este?
Respuesta1
Ampliando la respuesta de Werner (con elogios a su bola de cristal… :-)
\documentclass[a4paper]{article}
\usepackage[T1]{fontenc} % not actually necessary, but recommended
\usepackage[width=14cm]{geometry} % just for this example
\usepackage{amsmath}
\begin{document}
Text before.
\begin{equation}
\begin{split}
\text{PRODUCTION}_{i,t} &=
b_0 + b_1 \text{FORECAST}_{i,t} + b_2 \text{PEER\_FORECAST}_{i,t} \\
&\qquad + b_3 \text{FORECAST}_{i,t} \times \text{CEO\_TURNOVER}_{t-1} \\
&\qquad + b_4 \text{PEER\_FORECAST}_{i,t} \times \text{CEO\_TURNOVER}_{t-1} \\
&\qquad + b_5 \text{UNEMP}_{t-1} + b_6 \text{HORIZON}_t
\end{split}
\end{equation}
Text after.
\end{document}
(después de ver el resultado, decidí que lo prefiero \qquad
) \quad
. Aquí está el resultado:
Suma
Con las sugerencias de @egreg, el código se convierte en
\documentclass[a4paper]{article}
\usepackage[T1]{fontenc} % not actually necessary, but recommended
\usepackage[width=14cm]{geometry} % just for this example
\usepackage{amsmath}
\begin{document}
Text before.
\begin{equation}
\begin{split}
\text{PRODUCTION}_{i,t} =
b_0 &+ b_1\,\text{FORECAST}_{i,t} + b_2\,\text{PEER\_FORECAST}_{i,t} \\
&+ b_3\,\text{FORECAST}_{i,t} \times \text{CEO\_TURNOVER}_{t-1} \\
&+ b_4\,\text{PEER\_FORECAST}_{i,t} \times \text{CEO\_TURNOVER}_{t-1} \\
&+ b_5\,\text{UNEMP}_{t-1} + b_6\,\text{HORIZON}_t
\end{split}
\end{equation}
Text after.
\end{document}
lo que da el siguiente resultado:
Respuesta2
Probablemente estés buscando algo como esto:
\documentclass{article}
\usepackage[margin=1in]{geometry}% Just for this example
\usepackage{amsmath}
\begin{document}
\begin{align}
\text{PRODUCTION}_{i,t} &= b_0 + b_1 \text{FORECAST}_{i,t} + b_2 \text{PEER\_FORECAST}_{i,t} + \nonumber \\
&\phantom{{}={}} b_3 \text{FORECAST}_{i,t} \times \text{CEO\_TURNOVER}_{t-1} + \nonumber \\
&\phantom{{}={}} b_4 \text{PEER\_FORECAST}_{i,t} \times \text{CEO\_TURNOVER}_{t-1} + b_5 \text{UNEMP}_{t-1} + \nonumber \\
&\phantom{{}={}} b_6 \text{HORIZON}_t
\end{align}
\end{document}
Algunos problemas con su código:
No puedes usar un
align
interiorequation
;No dejes líneas en blanco dentro
align
;No utilicemos el escalado de fuentes relacionadas con el texto dentro del modo matemático (como
\small
);small
Técnicamente no es un entorno.
La numeración se puede suprimir para align
utilizar \nonumber
.