Text Formattingerrors when using display math and begin equation problem

Information and discussion about LaTeX's general text formatting features (e.g. bold, italic, enumerations, ...)
Post Reply
thedreamshaper
Posts: 44
Joined: Wed Aug 04, 2010 7:00 pm

errors when using display math and begin equation problem

Post by thedreamshaper »

I am getting (alot of) errors in a section of my document which consists of a few parts much like the one posted below, i have tried fiddling around with it my self but so far no luck.

Code: Select all

\bigskip
\begin{equation}[Studentiserede residualer]
\begin{displaymath}
\frac{\hat{\epsilon_{i}}}{\tilde{\sigma}_{-i} \sqrt{1-h_{ii}}} \sim t(n-1-k)
\end{displaymath}
Det bør nævnes at de standardiserede residualer ikke perfekt følger en normalfordeling, fordi der standardiseres med et estimat for deres varians frem for deres sande(ukendte) varians.
\\
$\tilde{\sigma}_{-i}$ er variansen estimeret uden den ite observation.
\\R kode: rstudent(model)
\end{equation}

If any one can see what i am doing wrong it would be a big help :)

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

And: Currently, Packt sells ebooks for $4.99 each if you buy 5 of their over 1000 ebooks. If you choose only a single one, $9.99. How about combining 3 LaTeX books with Python, gnuplot, mathplotlib, Matlab, ChatGPT or other AI books? Epub and PDF. Bundle (3 books, add more for higher discount): https://packt.link/MDH5p

gmedina
Posts: 2313
Joined: Wed Jul 11, 2007 11:45 pm

errors when using display math and begin equation problem

Post by gmedina »

Hi,

you cannot nest a displaymath environment inside an equation environment. Perhaps you are trying to do something like this (refer to the amsthm package documentation for details on the \newtheorem command):

Code: Select all

\documentclass{article}
\usepackage{amsmath}
\usepackage{amsthm}

\newtheorem{note}{Note}

\begin{document}

\begin{note}[Studentiserede residualer]
\begin{displaymath}
  \frac{\hat{\epsilon_{i}}}{\tilde{\sigma}_{-i} \sqrt{1-h_{ii}}} \sim t(n-1-k)
\end{displaymath}
Det bør nævnes at de standardiserede residualer ikke perfekt følger en normalfordeling, fordi der standardiseres med et estimat for deres varians frem for deres sande(ukendte) varians.
\\
$\tilde{\sigma}_{-i}$ er variansen estimeret uden den ite observation.
\\R kode: rstudent(model)
\end{note}

\end{document}
1,1,2,3,5,8,13,21,34,55,89,144,233,...
Post Reply