From 5c7e010f83ab867f2b0590217bd2c6827fe378a8 Mon Sep 17 00:00:00 2001
From: Reinhold Kainhofer <reinhold@kainhofer.com>
Date: Mon, 11 Sep 2017 00:18:55 +0000
Subject: [PATCH] Fix formulas in documentation

---
 R/mortalityTable.MakehamGompertz.R          | 4 ++--
 R/mortalityTable.Weibull.R                  | 4 ++--
 man/mortalityTable.MakehamGompertz-class.Rd | 4 ++--
 man/mortalityTable.Weibull-class.Rd         | 4 ++--
 4 files changed, 8 insertions(+), 8 deletions(-)

diff --git a/R/mortalityTable.MakehamGompertz.R b/R/mortalityTable.MakehamGompertz.R
index 7089136..fa3283a 100644
--- a/R/mortalityTable.MakehamGompertz.R
+++ b/R/mortalityTable.MakehamGompertz.R
@@ -4,8 +4,8 @@ NULL
 #' Class mortalityTable.MakehamGompertz - Mortality table with Makeham-Gompertz's law
 #'
 #' A period life table following Makeham and Gompertz's law of a mortality rate
-#' $\mu$ increasing exponentially with age $x$ ($\mu_{x+t} = A + B c^{(x+t)}$).
-#' The only required slots are the parameters $A$, $B$ and $c$, all probabilities
+#' \eqn{\mu} increasing exponentially with age \eqn{x} (\eqn{\mu_{x+t} = A + B c^{(x+t)}}).
+#' The only required slots are the parameters \eqn{A}, \eqn{B} and \eqn{c}, all probabilities
 #' are calculated from them, for technical reasons a maximum age of 120 is
 #' technically assumed.  Optionally, a name and loading can be passed
 #' (inherited from \code{\link{mortalityTable}}).
diff --git a/R/mortalityTable.Weibull.R b/R/mortalityTable.Weibull.R
index 8c7f666..44fd065 100644
--- a/R/mortalityTable.Weibull.R
+++ b/R/mortalityTable.Weibull.R
@@ -4,8 +4,8 @@ NULL
 #' Class mortalityTable.Weibull - Mortality table with Weibull's law
 #'
 #' A period life table following Weibulls's law of a mortality rate
-#' $\mu$ increasing as a power of $t$ ($\mu_{x+t} = k * (x+t)^n$).
-#' The only required slots are the parameters $k>0$ and $n>0$, all probabilities
+#' \eqn{\mu} increasing as a power of \eqn{t}: \deqn{\mu_{x+t} = k * (x+t)^n$}
+#' The only required slots are the parameters \eqn{k>0} and \eqn{n>0}, all probabilities
 #' are calculated from them, for technical reasons a maximum age of 150 is
 #' technically assumed.  Optionally, a name and loading can be passed
 #' (inherited from \code{\link{mortalityTable}}).
diff --git a/man/mortalityTable.MakehamGompertz-class.Rd b/man/mortalityTable.MakehamGompertz-class.Rd
index 31a3b92..b6ae8d2 100644
--- a/man/mortalityTable.MakehamGompertz-class.Rd
+++ b/man/mortalityTable.MakehamGompertz-class.Rd
@@ -7,8 +7,8 @@
 \title{Class mortalityTable.MakehamGompertz - Mortality table with Makeham-Gompertz's law}
 \description{
 A period life table following Makeham and Gompertz's law of a mortality rate
-$\mu$ increasing exponentially with age $x$ ($\mu_{x+t} = A + B c^{(x+t)}$).
-The only required slots are the parameters $A$, $B$ and $c$, all probabilities
+\eqn{\mu} increasing exponentially with age \eqn{x} (\eqn{\mu_{x+t} = A + B c^{(x+t)}}).
+The only required slots are the parameters \eqn{A}, \eqn{B} and \eqn{c}, all probabilities
 are calculated from them, for technical reasons a maximum age of 120 is
 technically assumed.  Optionally, a name and loading can be passed
 (inherited from \code{\link{mortalityTable}}).
diff --git a/man/mortalityTable.Weibull-class.Rd b/man/mortalityTable.Weibull-class.Rd
index 88ac6ca..af6953b 100644
--- a/man/mortalityTable.Weibull-class.Rd
+++ b/man/mortalityTable.Weibull-class.Rd
@@ -7,8 +7,8 @@
 \title{Class mortalityTable.Weibull - Mortality table with Weibull's law}
 \description{
 A period life table following Weibulls's law of a mortality rate
-$\mu$ increasing as a power of $t$ ($\mu_{x+t} = k * (x+t)^n$).
-The only required slots are the parameters $k>0$ and $n>0$, all probabilities
+\eqn{\mu} increasing as a power of \eqn{t}: \deqn{\mu_{x+t} = k * (x+t)^n$}
+The only required slots are the parameters \eqn{k>0} and \eqn{n>0}, all probabilities
 are calculated from them, for technical reasons a maximum age of 150 is
 technically assumed.  Optionally, a name and loading can be passed
 (inherited from \code{\link{mortalityTable}}).
-- 
GitLab