Вы находитесь на странице: 1из 6

Dissertation Writing Using LATEX

Bryan Langholz
USC Department of Preventive Medicine
Resources
www.miktex.org - download MikTeX implementation of latex (has wiz-
ard, fairly simple)

www.winedt.com - WinEdt word processor ($40), nicely set up for


LATEX

www.latex-project.org - Lots of links to documentation: www.latex-


project.org/guides/

This talk, examples, USCthesis2004.sty and USCthesis sample.tex and


LATEX links on the PM610 website:

http:\\hydra.usc.edu\PM610

Two books Ive used:

LATEX: A Document Preparation System (Paperback) by Leslie Lam-


port

A Guide to LATEX: Document Preparation for Beginners and Ad-


vanced Users (Paperback) by Helmut Kopka, Patrick W. Daly

1
\documentclass[12pt]{article}
%
% Example1.tex - Example input for LaTeX talk
%

\newcommand{\CR}{ {\cal R} } % Base data or risk set


\newcommand{\op}{{\otimes 2}} % outer product
\newcommand{\transpose}{{\mbox{\tiny\sf T}}}

\begin{document}
\begin{center}
\bf \Large Example 1
\end{center}

This is an simple example of input for \LaTeX. Here I will display


a well known trig equation
$$
\sin^2(\theta) + \cos^2(\theta) = 1.
$$

Next shows a statistical equation that is well known to some:


\begin{eqnarray}
{\cal I}_{H,exp}(\beta) &= & \sum_{i \in \CR} Z_i^\op p_{i,H}q_{i,H} \nonumber \\
& & ~+ \sum_{j\ne k \in\CR} Z_j Z_k^\transpose (p_{j,k,H}-p_{j,H}p_{k,H}).
\label{H-conditional information}
\end{eqnarray}
Equation (\ref{H-conditional information}) is a general expression
for the expected information ${\cal I}_{H,exp}$ based on a general
odds model for independent binary data conditioned on an event $H$.

\end{document}
Example 1
This is an simple example of input for LATEX. Here I will display a well
known trig equation
sin2 () + cos2 () = 1.
Next shows a statistical equation that is well known to some:

Zi2 pi,H qi,H


X
IH,exp () =
iR
X
+ Zj ZkT (pj,k,H pj,H pk,H ). (1)
j6=kR

Equation (1) is a general expression for the expected information IH,exp based
on a general odds model for independent binary data conditioned on an event
H.

1
\documentclass[12pt]{article}
%
% Example2.tex - Example use of citations
%

\begin{document}
\begin{center}
\bf \Large Example 2: Using citations with BibTex
\end{center}

Lots of good stuff on counting process and martingale theory


\cite{abgk-book}. To compute RR and variance estimates and for
case-cohort studies, I like a variation on the method of Therneau
and Li \cite{therneau-li99}. But, matched case-control studies seem
to be what I mostly work on, for example a study of traffic density
and childhood leukemia \cite{langholz-etal02}.

\bibliography{example}
\bibliographystyle{plain}

\end{document}
%
% example.bib - BibTex input file of references
% Note each reference is given an appreviation
%

@article{therneau-li99,
Author = {Therneau, T.M. and Li, H.},
Title = {Computing the Cox model for case cohort designs},
Journal = {Lifetime Data Analysis},
Volume = {5},
Pages = {99-112},
Keywords = {case-cohort},
Year = {1999} }

@article{langholz-etal02,
Author = {Langholz, B. and Ebi, K. and Thomas, D.C.
and Peters, J.M. and London, S.J.},
Title = {Traffic density and the risk of childhood
leukemia in a Los Angeles case-control study},
Journal = {Annals of Epidemiology},
Volume = {12},
Pages = {482-487},
Year = {2002} }

@Book{abgk-book,
author={P. K. Andersen and {\O}.
Borgan and R. D. Gill and N. Keiding},
title={Statistical {M}odels {B}ased on {C}ounting {P}rocesses},
publisher={Springer Verlag},
year = {1992},
address={New York}}
\end{verbatim}
Example 2: Using citations with BibTex
Lots of good stuff on counting process and martingale theory [1]. To
compute RR and variance estimates and for case-cohort studies, I like a
variation on the method of Therneau and Li [3]. But, matched case-control
studies seem to be what I mostly work on, for example a study of traffic
density and childhood leukemia [2].

References
[1] P. K. Andersen, . Borgan, R. D. Gill, and N. Keiding. Statistical Models
Based on Counting Processes. Springer Verlag, New York, 1992.

[2] B. Langholz, K. Ebi, D.C. Thomas, J.M. Peters, and S.J. London. Traffic
density and the risk of childhood leukemia in a los angeles case-control
study. Annals of Epidemiology, 12:482487, 2002.

[3] T.M. Therneau and H. Li. Computing the cox model for case cohort
designs. Lifetime Data Analysis, 5:99112, 1999.

Вам также может понравиться