You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
204 lines
8.5 KiB
204 lines
8.5 KiB
%%
|
|
%% This is file `lwarp-statex2.sty',
|
|
%% generated with the docstrip utility.
|
|
%%
|
|
%% The original source files were:
|
|
%%
|
|
%% lwarp.dtx (with options: `statex2')
|
|
%% This is a generated file.
|
|
%% Copyright 2016-2020 Brian Dunn
|
|
%%
|
|
%% This work may be distributed and/or modified under the
|
|
%% conditions of the LaTeX Project Public License, either version 1.3
|
|
%% of this license or (at your option) any later version.
|
|
%% The latest version of this license is in
|
|
%% http://www.latex-project.org/lppl.txt
|
|
%% and version 1.3 or later is part of all distributions of LaTeX
|
|
%% version 2005/12/01 or later.
|
|
\LWR@ProvidesPackagePass{statex2}[2011/09/14]
|
|
\newcommand*{\LWR@HTML@Alpha}[1][]{%
|
|
\fcolorbox{black}{ForestGreen}{\textcolor{white}{\textsf{ALPHA}}}%
|
|
\textbf{\textcolor{ForestGreen}{\textsf{#1}}}%
|
|
}
|
|
\LWR@formatted{Alpha}
|
|
|
|
\newcommand*{\LWR@HTML@List}[1]{%
|
|
\textbf{\textcolor{Dandelion}{\textsf{L}\textsubscript{\textit{#1}}}}%
|
|
}
|
|
\LWR@formatted{List}
|
|
|
|
\newcommand*{\LWR@HTML@Snd}[1][]{%
|
|
\fcolorbox{black}{Dandelion}{\textcolor{white}{\textsf{2nd}}}%
|
|
\textbf{\textcolor{Dandelion}{\textsf{#1}}}%
|
|
}
|
|
\LWR@formatted{Snd}
|
|
|
|
\begin{warpMathJax}
|
|
\LWR@infoprocessingmathjax{statex2}
|
|
|
|
\CustomizeMathJax{\newcommand{\cpi}{\boldsymbol{\pi}}}
|
|
\CustomizeMathJax{\newcommand{\c}[1]{\boldsymbol{\mathrm{#1}}}}
|
|
\CustomizeMathJax{\newcommand{\sfsl}[1]{\mathsf#1}}% not slanted
|
|
|
|
\if@manualbold
|
|
\CustomizeMathJax{\newcommand{\mb}[1]{#1}}
|
|
\else
|
|
\CustomizeMathJax{\newcommand{\mb}[1]{\boldsymbol{#1}}}
|
|
\fi
|
|
|
|
\CustomizeMathJax{\newcommand{\diag}{\mb{\mathrm{diag}}}}
|
|
\CustomizeMathJax{\newcommand{\blockdiag}{\mb{\mathrm{blockdiag}}}}
|
|
\CustomizeMathJax{\newcommand{\erf}{\mb{\mathrm{erf}}}}
|
|
\CustomizeMathJax{\newcommand{\logit}{\mb{\mathrm{logit}}}}
|
|
\CustomizeMathJax{\newcommand{\trace}{\mb{\mathrm{trace}}}}
|
|
|
|
\CustomizeMathJax{\newcommand{\chisq}{{\mb{\chi^2}}}}
|
|
\CustomizeMathJax{\newcommand{\deriv}[2]{\mb{\frac{\d{}}{\d{#1}}}\wrap{\mb{#2}}}}
|
|
\CustomizeMathJax{\newcommand{\derivf}[2]{\mb{\frac{\d{}}{\d{#2}}}\wrap{\mb{#1}}}}
|
|
\CustomizeMathJax{\newcommand{\e}[1]{\mb{\mathrm{e}^{#1}}}}
|
|
\CustomizeMathJax{\newcommand{\E}[2][]{\mb{\mathrm{E}}_{\mb{#1}} \wrap{\mb{#2}}}}
|
|
\CustomizeMathJax{\newcommand{\ha}{{\mb{\frac{\alpha}{2}}}}}
|
|
\CustomizeMathJax{\newcommand{\I}[2][]{%
|
|
\mb{\mathrm{I}}_{\mb{#1}} \LWRwrapparen{\mb{#2}}%
|
|
}}
|
|
\CustomizeMathJax{\newcommand{\IBeta}[2]{%
|
|
\mb{\frac{\Gamma[#1+#2]}{\Gamma[#1]\Gamma[#2]}}%
|
|
}}
|
|
\CustomizeMathJax{\newcommand{\If}{\;\mb{\mathrm{if}}\;}}
|
|
\CustomizeMathJax{\newcommand{\im}{\mb{\mathrm{i}}}}
|
|
\CustomizeMathJax{\newcommand{\ol}{\overline}}
|
|
\CustomizeMathJax{\newcommand{\ow}{\;\mb{\mathrm{otherwise}}\;}}
|
|
\CustomizeMathJax{\newcommand{\pderiv}[2]{%
|
|
\mb{\frac{\partial}{\partial #1}}\wrap{\mb{#2}}%
|
|
}}
|
|
\CustomizeMathJax{\newcommand{\pderivf}[2]{%
|
|
\mb{\frac{\partial}{\partial #2}}\wrap{\mb{#1}}%
|
|
}}
|
|
\CustomizeMathJax{\newcommand{\sd}{\mb{\sigma}}}
|
|
\CustomizeMathJax{\newcommand{\ul}{\underline}}
|
|
\CustomizeMathJax{\newcommand{\V}[2][]{\mb{\mathrm{V}}_{\mb{#1}} \wrap{\mb{#2}}}}
|
|
\CustomizeMathJax{\newcommand{\vs}{\;\mb{\mathrm{vs.}}\;}}
|
|
\CustomizeMathJax{\newcommand{\where}{\;\mb{\mathrm{where}}\;}}
|
|
\CustomizeMathJax{\newcommand{\wrap}[2][]{\left[ #2 \right]}}% only []
|
|
\CustomizeMathJax{\newcommand{\LWRwrapparen}[1]{\left( #1 \right)}}% lwarp
|
|
|
|
|
|
\CustomizeMathJax{\newcommand{\iid}{\;\stackrel{\mb{\mathrm{iid}}}{\sim}\;}}
|
|
\CustomizeMathJax{\newcommand{\ind}{\;\stackrel{\mb{\mathrm{ind}}}{\sim}\;}}
|
|
\CustomizeMathJax{\newcommand{\indpr}{%
|
|
\;\stackrel{\mb{\mathrm{ind}}}{\stackrel{\mb{\mathrm{prior}}}{\sim}}\;%
|
|
}}
|
|
\CustomizeMathJax{\newcommand{\post}{\;\stackrel{\mb{\mathrm{post}}}{\sim}\;}}
|
|
\CustomizeMathJax{\newcommand{\prior}{\;\stackrel{\mb{\mathrm{prior}}}{\sim}\;}}
|
|
|
|
\CustomizeMathJax{\let\STATEXGamma=\Gamma}
|
|
\CustomizeMathJax{\renewcommand{\Gamma}[1][]{\mb{\STATEXGamma}\LWRwrapparen{\mb{#1}}}}
|
|
\CustomizeMathJax{\renewcommand{\and}{\;\mb{\mathrm{and}}\;}}
|
|
\CustomizeMathJax{\newcommand{\H}{\mb{\mathrm{H}}}}
|
|
\CustomizeMathJax{\newcommand{\P}[2][]{\mb{\mathrm{P}}_{\mb{#1}}\wrap{\mb{#2}}}}
|
|
\CustomizeMathJax{\newcommand{\|}{\mb{\mid}}}
|
|
|
|
\CustomizeMathJax{\newcommand{\B}[1]{\mb{\mathrm{B}}\LWRwrapparen{\mb{#1}}}}
|
|
\CustomizeMathJax{\newcommand{\BB}[1]{\mb{\mathrm{BetaBin}}\LWRwrapparen{\mb{#1}}}}
|
|
\CustomizeMathJax{\newcommand{\Bin}[2]{\mb{\mathrm{Bin}}\LWRwrapparen{\mb{#1,\ #2}}}}
|
|
\CustomizeMathJax{\newcommand{\Dir}[1]{\mb{\mathrm{Dirichlet}}\LWRwrapparen{\mb{#1}}}}
|
|
\CustomizeMathJax{\newcommand{\HG}[3]{%
|
|
\mb{\mathrm{Hypergeometric}}\LWRwrapparen{\mb{#1,\ #2,\ #3}}%
|
|
}}
|
|
\CustomizeMathJax{\newcommand{\M}[2]{%
|
|
\mb{\mathrm{Multinomial}}\LWRwrapparen{\mb{#1,\ #2}}%
|
|
}}
|
|
\CustomizeMathJax{\newcommand{\NB}[2]{\mb{\mathrm{NegBin}}\LWRwrapparen{\mb{#1,\ #2}}}}
|
|
\CustomizeMathJax{\newcommand{\Poi}[1]{\mb{\mathrm{Poisson}}\LWRwrapparen{\mb{#1}}}}
|
|
\CustomizeMathJax{\let\Poisson=\Poi}
|
|
|
|
\CustomizeMathJax{\newcommand{\pBB}[4][x]{%
|
|
\mb{\frac{\Gamma[#2+1]\Gamma[#3+#1]\Gamma[#2+#4-#1]\Gamma[#3+#4]}%
|
|
{\Gamma[#1+1]\Gamma[#2-#1+1]\Gamma[#2+#3+#4]\Gamma[#3]\Gamma[#4]}%
|
|
\I[#1]{\{0, 1,\., #2\}}, \where #3>0,\; #4>0 \and n=1, 2,\.}%
|
|
}}
|
|
\CustomizeMathJax{\newcommand{\pBin}[3][x]{%
|
|
\mb{\binom{#2}{#1}#3^{#1}} \LWRwrapparen{\mb{{1-#3}^{#2-#1}}}%
|
|
\mb{\I[#1]{\{0,1,\.,#2\}}, \where p \in (0, 1) \and n=1, 2,\.}%
|
|
}}
|
|
\CustomizeMathJax{\newcommand{\pPoi}[2][x]{%
|
|
\mb{\frac{1}{#1!}#2^{#1}\e{-#2}\I[#1]{\{0, 1,\.\}}, \where #2>0}%
|
|
}}
|
|
|
|
\CustomizeMathJax{\newcommand{\Cau}[2]{\mb{\mathrm{Cauchy}}\LWRwrapparen{\mb{#1,\ #2}}}}
|
|
\CustomizeMathJax{\let\Cauchy=\Cau}
|
|
\CustomizeMathJax{\newcommand{\Chi}[2][]{%
|
|
\chisq_{\mb{#1}}\LWRwrapparen{\mb{#2}}%
|
|
}}
|
|
\CustomizeMathJax{\let\Chisq=\Chi}
|
|
\CustomizeMathJax{\newcommand{\Bet}[2]{\mb{\mathrm{Beta}}\LWRwrapparen{\mb{#1,\ #2}}}}
|
|
\CustomizeMathJax{\let\Beta=\Bet}
|
|
\CustomizeMathJax{\newcommand{\Exp}[1]{\mb{\mathrm{Exp}}\LWRwrapparen{\mb{#1}}}}
|
|
\CustomizeMathJax{\newcommand{\F}[2]{\mb{\mathrm{F}}\LWRwrapparen{\mb{#1,\ #2}}}}
|
|
\CustomizeMathJax{\newcommand{\Gam}[2]{\mb{\mathrm{Gamma}}\LWRwrapparen{\mb{#1,\ #2}}}}
|
|
\CustomizeMathJax{\newcommand{\IC}[1]{\mb{\mathrm{\chi^{-2}}}\LWRwrapparen{\mb{#1}}}}
|
|
\CustomizeMathJax{\newcommand{\IG}[2]{%
|
|
\mb{\mathrm{Gamma^{-1}}}\LWRwrapparen{\mb{#1,\ #2}}%
|
|
}}
|
|
\CustomizeMathJax{\newcommand{\IW}[2]{%
|
|
\mb{\mathrm{Wishart^{-1}}}\LWRwrapparen{\mb{#1,\ #2}}%
|
|
}}
|
|
\CustomizeMathJax{\newcommand{\Log}[2]{%
|
|
\mb{\mathrm{Logistic}}\LWRwrapparen{\mb{#1,\ #2}}%
|
|
}}
|
|
\CustomizeMathJax{\newcommand{\LogN}[2]{%
|
|
\mb{\mathrm{Log\!-\!N}}\LWRwrapparen{\mb{#1,\ #2}}%
|
|
}}
|
|
\CustomizeMathJax{\newcommand{\N}[3][]{%
|
|
\mb{\mathrm{N}}_{\mb{#1}}\LWRwrapparen{\mb{#2,\ #3}}%
|
|
}}
|
|
\CustomizeMathJax{\newcommand{\Par}[2]{\mb{\mathrm{Pareto}}\LWRwrapparen{\mb{#1,\ #2}}}}
|
|
\CustomizeMathJax{\let\Pareto=\Par}
|
|
\CustomizeMathJax{\newcommand{\Tsq}[2]{\mb{\mathrm{T^2}}\LWRwrapparen{\mb{#1,\ #2}}}}
|
|
\CustomizeMathJax{\newcommand{\U}[1]{\mb{\mathrm{U}}\LWRwrapparen{\mb{#1}}}}
|
|
\CustomizeMathJax{\newcommand{\W}[2]{\mb{\mathrm{Wishart}}\LWRwrapparen{\mb{#1,\ #2}}}}
|
|
|
|
\CustomizeMathJax{\renewcommand{\t}[1]{\mb{\mathrm{t}}\LWRwrapparen{\mb{#1}}}}
|
|
|
|
\CustomizeMathJax{\newcommand{\pBet}[3][x]{%
|
|
\IBeta{#2}{#3}%
|
|
#1^{#2-1}\LWRwrapparen{1-#1}^{#3-1}\I[#1]{0,\ 1}, \where #2>0 \and #3>0%
|
|
}}
|
|
\CustomizeMathJax{\newcommand{\pCau}[3][x]{%
|
|
{\frac{1}{#3\cpi\left\{1+\wrap{\LWRwrapparen{x-#2}/#3}^2\right\}}, \where #3>0}%
|
|
}}% no special case for 0,1
|
|
\CustomizeMathJax{\newcommand{\pChi}[2][x]{%
|
|
\frac{2^{-#2/2}}{\Gamma[#2/2]}#1^{#2/2-1}\e{-#1/2}%
|
|
\I[#1]{0,\infty}, \where #2>0%
|
|
}}
|
|
\CustomizeMathJax{\newcommand{\pExp}[2][x]{%
|
|
\frac{1}{#2}\e{-#1/#2}\I[#1]{0,\infty},%
|
|
\where #2>0%
|
|
}}
|
|
\CustomizeMathJax{\newcommand{\pGam}[3][x]{%
|
|
\frac{#3^{#2}}{\Gamma[#2]}#1^{#2-1}\e{-#3#1}%
|
|
\I[#1]{0,\infty}, \where #2>0 \and #3>0%
|
|
}}
|
|
\CustomizeMathJax{\newcommand{\pN}[3][x]{%
|
|
{\frac{1}{\sqrt{2\cpi \cdot #3}}\e{-\LWRwrapparen{#1-#2}^2/2 \cdot #3}}%
|
|
}}% no test for 0,1, must add \cdot
|
|
\CustomizeMathJax{\newcommand{\pPar}[3][x]{%
|
|
\frac{#3}{#2\LWRwrapparen{1+#1/#2}^{#3+1}}\I[#1]{0,\infty},%
|
|
\where #2>0 \and #3>0%
|
|
}}
|
|
\CustomizeMathJax{\newcommand{\pU}[3][x]{%
|
|
{\frac{1}{#3-#2}\I[#1]{#2,\ #3}, \where #2<#3}%
|
|
}}% no special case for 0,1
|
|
|
|
\CustomizeMathJax{\newcommand{\=}[1]{\bar{#1}}}
|
|
\CustomizeMathJax{\let\^\widehat}
|
|
\CustomizeMathJax{\let\~\widetilde}
|
|
\CustomizeMathJax{\newcommand{\'}[1]{\LWRwrapparen{\mb{#1}}}}
|
|
\CustomizeMathJax{\newcommand{\b}[1]{\bar{#1}}}
|
|
\CustomizeMathJax{\newcommand{\c}[1]{\mb{\mathrm{#1}}}}
|
|
\CustomizeMathJax{\newcommand{\d}[1]{\,\mb{\mathrm{d}{#1}}}}
|
|
\CustomizeMathJax{\newcommand{\.}{\mb{\ldots}}}
|
|
\end{warpMathJax}
|
|
\endinput
|
|
%%
|
|
%% End of file `lwarp-statex2.sty'.
|
|
|