TransWikia.com

Math mode Error

TeX - LaTeX Asked on May 6, 2021

I am trying to compile this:

center
clearpage
begin{table}
caption{. U.S. Stock Return Predictability}
caption*{small Table II shows return predictability for the U.S. equity market, December 1986 to May 2014, 330 monthly observations. The regression is:

begin{equation*}
frac{{12}}{h}sumlimits_{i = 1}^h {log {R_{t + i}} - } log R_{t + i}^f = {beta _0} + {beta _1}GLDRI{X_{innov}} + {varepsilon _{t + h}}
end{equation*}



The left had side variable is the excess return on the CRSP value-weighted index, annualized by horizon h. The right hand side predictor is $GLDRIX_{innov}$. The returns are calculated based on overlapping monthly data, and t-statistics are based on Newey and West (1987) HAC robust standard errors.}
include{det1}
label{table:II}
end{table}

and I get the following error:

I've inserted a begin-math/end-math symbol since I think
you left one out. Proceed, with fingers crossed.
! Extra }, or forgotten $.

Would you please help me with this?

One Answer

I don't think you need the caption* wrapper at all.

enter image description here

You'll notice that I've removed a lot of curly braces from the equation as they don't do anything except code clutter. I can't help but observe that the regression equation still doesn't look right; e.g., shouldn't mathrm{GLDRIX}_{mathrm{innov}} have a time-t subscript?

enter image description here

documentclass{article} % or some other suitable doc. class
usepackage{amsmath} % for 'equation*' env.
usepackage[skip=0.5baselineskip]{caption}

begin{document}
begin{table}
caption{U.S. stock return predictability}
label{table:II}

begingroup
small % <-- is this really needed?
This table shows return predictability for the U.S. equity market, 
December 1986 to May 2014, 330 monthly observations. 
The regression equation is:
begin{equation*}
frac{12}{h}sum_{i=1}^h log R_{t+i} - log R_{t+i}^f 
= beta_0 + beta_1mathrm{GLDRIX}_{mathrm{innov}} + varepsilon_{t + h}
end{equation*}
The left hand side variable is the excess return on the CRSP 
value-weighted index, annualized by horizon $h$. The right hand 
side predictor is $mathrm{GLDRIX}_{mathrm{innov}}$. The returns 
are calculated based on overlapping monthly data, and $t$-statistics 
are based on Newey and West (1987) HAC robust standard errors.
endgroup

%centering
%input det1 % does 'det1.tex' contain some tabular material?

end{table}
end{document}

Answered by Mico on May 6, 2021

Add your own answers!

Ask a Question

Get help from others!

© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP