\documentclass[nojss]{jss}
\usepackage{amsfonts,
            amsmath,
            amsthm,
            bm,
            color,
            multirow,
            relsize,
            rotating,
            setspace,
            xcolor}

%\VignetteIndexEntry{parfm}
%\VignetteIndexEntry{parfm: Parametric Frailty Models in R}
%\VignetteKeyword{frailty}
%\VignetteKeyword{parametric}
%\VignetteKeyword{Weibull}
%\VignetteKeyword{inverse Weibull}
%\VignetteKeyword{Frechet}
%\VignetteKeyword{Gompertz}
%\VignetteKeyword{exponential}
%\VignetteKeyword{lognormal}
%\VignetteKeyword{loglogistic}
%\VignetteKeyword{gamma}
%\VignetteKeyword{positive stable}
%\VignetteKeyword{inverse gaussian}

\def\ccom{\raisebox{.45ex}{\textrm{,}}}
\definecolor{gray}{rgb}{.6,.2,.2}
            
\author{Marco Munda\\Arlenda \And 
        Federico Rotolo\\Gustave Roussy \And
        Catherine Legrand\\Universit\'e catholique de Louvain}
\Plainauthor{Marco Munda,
             Federico Rotolo,
             Catherine Legrand}
             
\title{\pkg{parfm}: Parametric Frailty Models in \proglang{R}
        \\[.5em]\small{Package vignette, V.~1.4 (January 25th, 2017)}}
\Plaintitle{parfm: Parametric Frailty Models in R} %% without formatting

\Abstract{ \input{tex/00_abs.tex} }

\Keywords{parametric frailty models,
          survival analysis,
          gamma, 
          positive stable, 
          inverse Gaussian, 
          Weibull, 
          inverse Weibull, 
          Fr\'echet, 
          exponential, 
          Gompertz, 
          loglogistic, 
          lognormal, 
          logskewnormal, 
          skew-normal, 
          \proglang{R}, 
          \pkg{parfm}}
\Plainkeywords{parametric frailty models, 
               survival, 
               gamma, 
               positive stable, 
               inverse gaussian, 
               weibull, 
               inverse weibull, 
               fr\'echet, 
               exponential, 
               gompertz, 
               loglogistic, 
               lognormal, 
               logskewnormal, 
               skew-normal, 
               R, 
               parfm}


\Address{
  Marco Munda\\
  Arlenda\\
  93 Chauss\'ee verte\\
  4470 Saint-Georges-sur-Meuse, Belgium\\
  E-mail: \email{marco.munda@arlenda.com}\\

  Federico Rotolo\\
  Department of Biostatistics and Epidemiology\\
  Gustave Roussy cancer center\\
  114, Rue Edouard Vaillant\\
  94805 Villejuif, France\\
  E-mail: \email{federico.rotolo@gustaveroussy.fr}\\


  Catherine Legrand\\
  Institut de Statistique, Biostatistique et Sciences Actuarielles\\
  Universit\'e catholique de Louvain\\
  Voie du Roman Pays, 20\\
  1348 Louvain-la-Neuve, Belgium\\
  E-mail: \email{catherine.legrand@uclouvain.be}
}


%% for those who use Sweave please include the following line (with % symbols):
%% need no \usepackage{Sweave.sty}


%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% \makeatletter
% \def\thickhrulefill{\leavevmode\leaders\hrule\hfill\kern\z@}
% \newenvironment{nota} {\vskip15pt\noindent\thickhrulefill\quad
% \textbf{Note}\quad \thickhrulefill\par\nobreak\slshape}
% {\vskip1pt\noindent\thickhrulefill\quad\par\nobreak\normalfont\vskip15pt}
% \makeatother
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\begin{document}
\SweaveOpts{concordance=FALSE}

This vignette is an up-to-date versuib of the paper
    published in the Journal of Statistical Software in 2012:
\cite{MundaEtal12}.

\section{Introduction}
  \label{sec:intro}
  \input{tex/01_intro.tex}

\section{Model estimation}
  \label{sec:model}
    \input{tex/02.0_model.tex}
  % \clearpage
  \subsection{Gamma frailty}
    \label{sec:model:gamma}
    \input{tex/02.1_Gamma.tex}
  \subsection{Positive stable frailty}
    \label{sec:model:PS}
    \input{tex/02.2_PS.tex}
  \subsection{Inverse Gaussian frailty}
    \label{sec:model:IG}
    \input{tex/02.3_IG.tex}
  \subsection{Lognormal frailty}
    \label{sec:model:LN}
    \input{tex/02.4_LN.tex}

\section{Case study}
  \label{sec:rexample}
  \input{tex/03_rexample.tex}

\section{Discussion}
  \label{sec:concl}
  \input{tex/05_concl.tex}


% \clearpage
% Bibliography
% \bibliographystyle{jss}
\bibliography{tex/lib}

\clearpage
\appendix
\section{Proofs}
\subsection{Derivatives of the Laplace transform of the inverse Gaussian frailty distribution}
  \label{app:derLTIG}
  \input{tex/99.1_derLTIG.tex}

\clearpage
\subsection{Conditional expectation of frailty terms}
  \label{app:condEfrailty}
  \input{tex/99.2_condEfrailty.tex}

\clearpage
\subsection{Conditional distribution of inverse Gaussian frailty}
  \label{app:condIG}
  \input{tex/99.3_condIG.tex}

\end{document}
