0
  7   ˆl–äY>”jeJe@µp-\må1hß�þBèÍÊÈ]h2:ùóÀ„}¡6÷ÅÃÂ ?÷     %\VignetteIndexEntry{haplo.stats}
%\VignetteKeywords{haplotype, score, glm}
%\VignetteDepends{haplo.stats}
%\VignettePackage{haplo.stats}

\RequirePackage[T1]{fontenc}
\RequirePackage{graphicx,ae,fancyvrb}

\IfFileExists{upquote.sty}{\RequirePackage{upquote}}{}
\setkeys{Gin}{width=0.9\textwidth}

\DefineVerbatimEnvironment{Sinput}{Verbatim}{fontfamily=courier,
  fontshape=sl, fontseries=b, xleftmargin=.25cm}

\DefineVerbatimEnvironment{Soutput}{Verbatim}{fontfamily=courier,
  fontshape=sl, xleftmargin=.5cm}

\documentclass[10pt]{article}
\def\version{version 1.6.0}
\def\Rversion{version 3.0.1}
\def\package{{\sl haplo.stats}}
\def\Explain{\paragraph{\large {\bf Explanation of Results \vspace{.1in}} \\}}

\usepackage{Sweave}
\usepackage{fullpage}
\usepackage{hyperref}

%\textwidth 6.5in
%\oddsidemargin 0in
%\evensidemargin 0in
%\textheight 7.7in

\title{{\bf Haplo Stats} \\
(\version) \vspace{.25in}\\
Statistical Methods for Haplotypes When
Linkage Phase is Ambiguous \vspace{1.5in}\\
}

\author{Jason P. Sinnwell\thanks{sinnwell@mayo.edu} and Daniel J. Schaid \\
Mayo Clinic Division of Health Sciences Research\\Rochester MN USA 55904 \vspace{.25in} \\}

\date{{\today} \vspace{2in}}
\begin{document}

\maketitle

\pagebreak
\tableofcontents
\pagebreak

\section{Introduction}

Haplo Stats is a suite of R routines for the analysis of indirectly 
measured haplotypes. The statistical methods assume that all subjects 
are unrelated and that haplotypes are ambiguous (due to unknown linkage 
phase of the genetic markers), while also allowing for missing alleles.


The user-level functions in Haplo Stats are:
\begin{itemize}
 \item{{\sl haplo.em:}\ \ for the estimation of haplotype frequencies
   and posterior probabilities of haplotype pairs for each subject, 
   conditional on the observed marker data} 
 \item{{\sl haplo.glm:}\ \ generalized linear models for the regression of 
   a trait on haplotypes, with the option of including covariates and 
   interactions}
 \item{{\sl haplo.score:}\ \ score statistics to test associations
   between haplotypes and a variety of traits, including binary, ordinal,
   quantitative, and Poisson}
 \item{{\sl haplo.score.slide:} \ \ haplo.score computed on sub-haplotypes
   of a larger region}
 \item{{\sl seqhap:}\ \ sequentially scan markers in enlarging a haplotype
   for association with a trait}
 \item{{\sl haplo.cc:} \ \ run a combined analysis for haplotype 
   frequencies, scores, and regression results for a case-control study}
 \item{{\sl haplo.power.qt/haplo.power.cc:}\ \ power or sample size 
   calculatins for quantitative or binary trait}
 \item{{\sl haplo.scan:}\ \ search for a trait locus for all sizes
   of sub-haplotypes within a fixed maximum window width for all
   markers in a region}
 \item{{\sl haplo.design:} \ \ create a design matrix for haplotype
     effects}
\end{itemize}

\noindent This manual explains the basic and advanced usage of these 
routines, with guidelines for running the analyses and interpreting results. 
We provide many of these details in the function help pages, which are
accessed within an R session using 
{\sl help(haplo.em)}, for example.  We also provide brief examples in the 
help files, which can be run in the R session with {\sl example(haplo.em)}.

\subsection{Updates} 
The last major update to Haplo Stats included updates to {\sl haplo.glm} 
in section~\ref{hapGLM} and new methods written for it that resemble glm 
class methods. These methods include residuals, fitted.values, vcov, and 
anova, and they are detailed in section~\ref{glmMethods}. For full history
of updates see the NEWS file, or type {\sl news(package=''haplo.stats'')} 
in the R command prompt.

\subsection{Operating System and Installation}
Haplo Stats \version\ is written for R (\Rversion).  It has been uploaded 
to the Comprehensive R Archive Network (CRAN), and is made available 
on various operating systems through CRAN.  Package installation within R
is made simple from within R using {\sl install.packa