-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathheader.tex
159 lines (139 loc) · 4.66 KB
/
header.tex
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
\usefonttheme[onlymath]{serif}
% use article-like math letters, from http://tex.stackexchange.com/questions/34265/how-to-get-beamer-math-to-look-like-article-math
% linear model equations
\newcommand\LMi{\mathrm{(LM1)}}
\newcommand\LMii{\mathrm{(LM2)}}
\newcommand\LMiii{\mathrm{(LM3)}} % y=Xb+e
\newcommand\LMiv{\mathrm{(LM4)}}
\newcommand\LMv{\mathrm{(LM5)}}
\newcommand\LMvi{\mathrm{(LM6)}} % Y=X beta + epsilon
\newcommand\SLRi{\mathrm{(SLR1)}}
\newcommand\SLRii{\mathrm{(SLR2)}}
\newcommand\slope{m}
\newcommand\intercept{c}
\newcommand\code[1]{\url{#1}}
\newcommand\question{{\bf Question}}
\newcommand\mysolution{{\bf Solution}}
\newcounter{Qcounter}
\newcommand\myquestion{{\stepcounter{Qcounter} \bf Question \CHAPTER.\theQcounter}}
\newcounter{WorkedExampleCounter}
\newcommand\WorkedExample{{\stepcounter{WorkedExampleCounter} \bf Worked example \CHAPTER.\theWorkedExampleCounter}}
\newcommand\myexample{{\bf Example}}
\newcommand\mydot{{\,\cdot\,}}
\newcommand\myref[1]{\m{#1}}
%\newcommand\mynotes[2]{#1}
\newcommand\mynotes[2]{#2}
\newcommand\Rspace{\mathcal{R}}
\newcommand\Sspace{\mathcal{S}}
\usepackage{amsmath}
\renewcommand\vec[1]{\boldsymbol{\mathrm{#1}}}
\newcommand\vect[1]{\vec{#1}}
\newcommand\mat[1]{\mathbb{#1}}
%\newcommand\mat[1]{\mathcal{#1}}
\newcommand\mymatrix[3]{\left[
\begin{array}{cccc}
{#1}_{11} & {#1}_{12} & \dots & {#1}_{1{#3}} \\
{#1}_{21}& {#1}_{22} & \dots & {#1}_{2{#3}} \\
\vdots & \vdots & \ddots & \vdots \\
{#1}_{{#2}1} & {#1}_{{#2}2} & \dots & {#1}_{{#2}{#3}}
\end{array}
\right]
}
\newcommand\myvector[2]{\left[
\begin{array}{c}
{#1}_{1} \\
{#1}_{2} \\
\vdots \\
{#1}_{{#2}}
\end{array}
\right]
}
\newcommand\mytwovector[2]{\left[
\begin{array}{c}
{#1} \\
{#2}
\end{array}
\right]
}
\newcommand\mytwomatrix[4]{\left[
\begin{array}{cc}
{#1} & {#2} \\
{#3} & {#4}
\end{array}
\right]
}
\newcommand\mysmallmatrix[3]{\left[
\begin{array}{ccc}
{#1}_{11} & \dots & {#1}_{1{#3}} \\
\vdots & \ddots & \vdots \\
{#1}_{{#2}1} & \dots & {#1}_{{#2}{#3}}
\end{array}
\right]
}
\newcommand\bi{\begin{itemize}}
\newcommand\ei{\end{itemize}}
\newcommand\prob{\mathrm{P}}
\newcommand\normal{\mathrm{normal}}
\newcommand\iid{\mathrm{iid}}
\newcommand\MVN{\mathrm{MVN}}
\newcommand\E{\mathrm{E}}
\newcommand\SE{\mathrm{SE}}
%\newcommand\SD{\mathrm{SD}}
\newcommand\RSS{\mathrm{RSS}}
\newcommand\SST{\mathrm{SST}}
\newcommand\pval{\mathrm{pval}}
\newcommand\var{\mathrm{Var}}
\newcommand\sd{\mathrm{SD}}
\newcommand\sdSample{\mathrm{sd}}
\newcommand\varSample{\mathrm{var}}
\newcommand\cov{\mathrm{Cov}}
\newcommand\covSample{\mathrm{cov}}
\newcommand\corSample{\mathrm{cor}}
\newcommand\cor{\mathrm{Cor}}
\newcommand\given{{\, | \,}}
\newcommand\param{\,;}
\newcommand\transpose{{\raisebox{0.5mm}{\mbox{\scriptsize \textsc{t}}}}}
\newcommand\mycolon{{\hspace{0.5mm}:\hspace{0.5mm}}}
\newcommand\myemph[1]{{\textbf{#1}}}
\newcommand\mymathenv[1]{\textcolor{blue}{#1}}
\newcommand\mymath[1]{\begin{math}\textcolor{blue}{#1}\end{math}}
\newcommand\m[1]{\mymath{#1}}
\newcommand\mydisplaymath[1]{\begin{displaymath}\textcolor{blue}{#1}\end{displaymath}}
\newcommand\myeqnarray[1]{\textcolor{blue}{\begin{eqnarray*}#1 \end{eqnarray*}}}
\newcommand\myspace{\quad}
\newcommand\altdisplaymath[1]{\vspace{1mm}\textcolor{blue}{\begin{math}\displaystyle #1 \end{math}}\vspace{1mm}}
\usepackage{natbib}
\usepackage{url}
%\usepackage{ulem}
%\renewcommand\emph[1]{{\it #1}} % the ulem package redefines \emph
%\renewcommand\em{\it} % the ulem package redefines \emph
\newcommand\enumerateSpace{\hspace{2mm}}
\usepackage{amssymb}
\newenvironment {myitemize} {
\begin{list}{\textcolor{black}{$\bullet$} \hfill}
% \begin{list}{\textcolor{blue}{{\small{$\blacktriangleright$}}} \hfill}
{\setlength{\labelwidth}{0.3 cm}
%\setlength{\leftmargin}{0em}
\setlength{\leftmargin}{0.15cm}
\setlength{\itemindent}{0.15cm}
\setlength{\labelsep}{0cm}
\setlength{\parsep}{0.2 ex}
% \setlength{\itemsep}{0.25 cm}
\setlength{\itemsep}{1 mm}
% \setlength{\itemsep}{0.0 cm}
\setlength{\topsep}{0.0cm}}} %space between title and 1st item
{\end{list}}
\usepackage{graphicx} % Allows including images
%\usepackage{booktabs} % Allows the use of \toprule, \midrule and \bottomrule in tables
\mode<presentation> {
\usetheme{Madrid}
\setbeamertemplate{footline}
\setbeamertemplate{navigation symbols}{}
}
\setlength{\parskip}{0mm}
\setlength{\parindent}{0mm}
%\newcommand\negBeforeCode{\vspace{-2mm}}
%\newcommand\negAfterCode{\vspace{-3mm}}
\newcommand\negBeforeCode{}
\newcommand\negAfterCode{}
%\renewenvironment{knitrout}{\vspace{-3mm}}{\vspace{-5mm}}