1
! Missing $ inserted.
<inserted text> 
                $
l.121 \^{p_{ijk}}
                  = \^{\pi}_{ijk} = \fract{y_{ijk}}{n}
6
  • What can you be trying to type??!!! What is this \fractcommand?
    – Bernard
    Commented Jan 6, 2016 at 18:05
  • @Bernard, I am trying to obtain p hat underscore ijk as output.
    – User235
    Commented Jan 6, 2016 at 18:06
  • 3
    Welcome to TeX.SX! Please help us help you and add a minimal working example (MWE) that illustrates your problem. Reproducing the problem and finding out what the issue is will be much easier when we see compilable code, starting with \documentclass{...} and ending with \end{document}. Commented Jan 6, 2016 at 18:11
  • @ChristianHupfer, if we intend to place a hat on p, then should a package be installed. I have already installed the amsmath package.
    – User235
    Commented Jan 6, 2016 at 18:17
  • @Sana: I don't understand what you're trying to say. You don't need a package for your requirements
    – user31729
    Commented Jan 6, 2016 at 18:33

2 Answers 2

2

There is a \hat for that:

enter image description here

\documentclass{article}

\begin{document}

\[
  \hat{p}_{ijk} = \hat{\pi}_{ijk} = \frac{y_{ijk}}{n}
\]

\end{document}
2

Maybe one of these?

\documentclass{article}

\begin{document}

    \[ \widehat{\pi_{ijk}},\quad \widehat{\pi}_{ijk} = \frac{y_{ijk}}{n} \]%%

\end{document} 

enter image description here

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .