



Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
Prepare for your exams
Study with the several resources on Docsity
Earn points to download
Earn points by helping other students or get them with a premium plan
Resources and examples for writing a dissertation using latex. It includes download links for miktex and winedt, references to documentation and books, and examples of latex code for displaying equations and using citations with bibtex.
Typology: Study notes
1 / 6
This page cannot be seen from the preview
Don't miss anything!




\ 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}
\ 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}