-
Notifications
You must be signed in to change notification settings - Fork 0
/
RJMCMC Privatissimum.tex.bak
470 lines (397 loc) · 14 KB
/
RJMCMC Privatissimum.tex.bak
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
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
\documentclass[12pt,final,slidescentered,usepdftitle=true]{beamer}
% "final" and "draft" are optional to increase the speed of compilation
% "slidescentered", "slidestop" are options
% override these options for individual slides with "t", "c" or "b"
% "handout" is another class option overriding all overlays
%Included for Gather Purpose only:
%input "../../literature.bib"
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Setting up the presentation layout %
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% To exclude the backup slides from being included in the ``totalframenumber'' count:
\makeatletter
\let\appendixtotalframenumber\empty
\def\mainend{-1}
\let\appendixorig\appendix
\def\appendix{
\edef\mainend{\theframenumber}
\immediate\write\@auxout{\string\global\string\@namedef{mainendframenumber}{\mainend}}
\appendixorig
\def\inserttotalframenumber{\appendixtotalframenumber}%
\setcounter{framenumber}{0}
}
\def\newblock{\hskip .11em plus .33em minus .07em}
\def\pageatend{
\edef\appendixend{\theframenumber}
\ifnum\mainend>0%
\immediate\write\@auxout{\string\global\string\@namedef{appendixtotalframenumber}{\appendixend}}%
\immediate\write\@auxout{\string\global\string\@namedef{inserttotalframenumber}{\mainend}}%
\immediate\write\@auxout{\string\@writefile{nav}{\noexpand \headcommand {%
\noexpand \def\noexpand \inserttotalframenumber{\mainend}}}}%
\immediate\write\@auxout{\string\@writefile{nav}{\noexpand \headcommand {%
\noexpand \def\noexpand \appendixtotalframenumber{\appendixend}}}}%
\else
\fi
}
\AtEndDocument{\pageatend}
\makeatother
% Defining colours used in the document:
\usepackage{color}
\definecolor{HUBlue}{cmyk}{1,.6,0,.2}
\definecolor{HURed}{cmyk}{0,.9,.8,.4}
\definecolor{HUGreen}{cmyk}{.9,.1,.8,.4}
\definecolor{HUSand}{cmyk}{0,.05,.5,.2}
\definecolor{HUGrayGreen}{cmyk}{0,0,.1,.2}
\definecolor{HUBlueGray}{cmyk}{.1,0,0,.2}
\definecolor{darkblue}{rgb}{0,0,0.55}
\definecolor{brightgreyblue}{rgb}{0.92,0.92,0.94}
\definecolor{darkred}{rgb}{0.8,0.00,0.00}
%\setbeamercolor{alerted text}{fg=darkred}
\usepackage{pgf,pgfarrows,pgfnodes,pgfautomata,pgfheaps}
\usecolortheme[named=HUBlue]{structure}
\usecolortheme{sidebartab}
\setbeamercolor{alerted text}{fg=HURed}
% Generating the grey foot line:
%\setbeamercolor{footlinecolor}{fg=HUBlue}
\setbeamercolor{footlinecolor}{fg=HUBlue,bg=HUGrayGreen!50}
\setbeamertemplate{footline}
{\begin{beamercolorbox}{footlinecolor}
\vskip3.5pt
\insertsectionnavigationhorizontal{0.85\paperwidth}{}{}%
\vspace{-0.9\baselineskip} \hfill \normalfont \insertframenumber\,/\,\inserttotalframenumber%
\hspace{8pt}
\vskip4pt
\end{beamercolorbox}
}
\setbeamertemplate{caption}[numbered]
\setbeamertemplate{caption}{\small\textbf{\usebeamercolor[fg]{structure}\insertcaptionname~\insertcaptionnumber.} \insertcaption}
% Turning off the navigation symbols on the bottom of the frames:
\beamertemplatenavigationsymbolsempty
\beamertemplatetransparentcovered
% alternatively: \beamertemplatetransparentcovereddynamic
\usepackage{amsmath,amssymb}
\usepackage{pgf,pgfarrows,pgfnodes,pgfautomata,pgfheaps}
\usepackage{stackengine}
% Choosing a font combination (serif, non-serif and mono-spaced font):
% \usepackage[sc]{mathpazo} \usepackage[scaled=0.9]{helvet} \usepackage{courier}
% Alternative font combinations:
% \usepackage{fourier} \usepackage[scaled=0.84]{berasans} \usepackage[scaled=0.84]{beramono}
% \usepackage{mathptmx} \usepackage[scaled=0.9]{helvet} \usepackage{courier}
\usepackage[charter]{mathdesign} \usepackage{berasans} \usepackage{beramono}
% \usefonttheme[stillsansseriflarge]{serif}
\usefonttheme{serif}
\usefonttheme{structurebold}
\frenchspacing % prevents the enlarged whitespace after a dot
\sloppy
% The following command has the effect that at the beginning of each section, the outline
% slide is repeated, with the current section being highlighted:
\AtBeginSection[]
{\begin{frame}<beamer>
\frametitle{~}
\tableofcontents[currentsection]
\end{frame}
}
% Enable hyphenation on Beamer slides:
\usepackage{ragged2e}
\let \raggedright \RaggedRight
\sloppy
\hyphenpenalty=500
\setbeamersize{text margin right=25pt}
%% Edit Holger:
%\setbeamertemplate{footline}
% {\vskip-7.5pt\hspace{7pt}
% % \textcolor{black}
% {\usebeamercolor[fg]{navigation symbols}\fontseries{m}\selectfont\insertframenumber\,/\,\inserttotalframenumber}
% \vskip4pt
% }
% The following package enables so-called hanging punctuation.
% That is, when a punctuation sign like ":", ".", "-" etc.
% is found at the beginning or end of a line, it is protruded a little into the page margin.
% This leads to so-called "optical margin alignment," because the protrusion
% makes the margin alignment look straighter.
\usepackage[protrusion=true, expansion=false, kerning=true]{microtype}
\SetExtraKerning[unit=space]
{encoding={*}, family={*}, series={*}, size={*, footnote size}}
{\textemdash={325,325}}
% If you use BibTeX:
\usepackage[authoryear,semicolon]{natbib}
\makeatletter
\DeclareRobustCommand\citepos
{\begingroup\def\NAT@nmfmt##1{{\NAT@up##1's}}%
\NAT@swafalse\let\NAT@ctype\z@\NAT@partrue
\@ifstar{\NAT@fulltrue\NAT@citetp}{\NAT@fullfalse\NAT@citetp}}
\makeatother
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Loading additional useful LaTeX packages %
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\usepackage[latin1]{inputenc} % enables you to input "Umlaute" as 'ä' instead of '\"a' etc.
\usepackage{graphicx}
% \usepackage[pdftex, pdftitle={Insert title of the talk/lecture},
% pdfauthor={You 1 and You 2}, pdfsubject={Insert subject of the talk/lecture},
% bookmarks=true, bookmarksopen=true, bookmarksnumbered=true, bookmarksopenlevel=2, colorlinks=true,
% pdfpagemode=UseOutlines, pdfview=Fit, pdfstartview=Fit, pdffitwindow=false, linkcolor=darkblue,
% citecolor=darkblue, urlcolor=darkblue]{hyperref}
\hypersetup{colorlinks=true, linkcolor=HUBlue, citecolor=HUBlue, urlcolor=HUBlue}
\urlstyle{same}
\usepackage{verbatim}
\usepackage{listings}
% \usepackage[activate]{pdfcprot}
\usepackage{ulem}
%\usepackage{subeqn}
\usepackage{mathrsfs} % this is for Vetter's differentation operator
\usepackage{rotating}
\usepackage{verbatim}
\usepackage{multirow}
\usepackage{multicol}
\usepackage{afterpage}
%\usepackage{footmisc}
\usepackage[justification=centering]{caption}
\usepackage{arydshln} % for dashed lines in arrays
\usepackage{hyperref}
\newtheorem{assumption}[theorem]{Assumption}
\newtheorem{proposition}[theorem]{Proposition}
%%%%%%%%%%%%%%%%%%%%%%%%%%
% Some new math commands %
%%%%%%%%%%%%%%%%%%%%%%%%%%
\newcommand{\rdmatrix}[1]{\left(\,\begin{matrix}#1\end{matrix}\,\right)}
\newcommand{\sqmatrix}[1]{\left[\,\begin{matrix}#1\end{matrix}\,\right]}
\newcommand{\E}{\mathrm{E}}
\newcommand{\Var}{\mathrm{Var}}
\newcommand{\Cov}{\mathrm{Cov}}
\newcommand{\dd}{\mathrm{d}}
\newcommand{\scL}{\mathcal{L}}
\makeatletter
\renewenvironment{subarray}[2][c]{%
\if#1c\vcenter\else\vbox\fi\bgroup
\Let@ \restore@math@cr \default@tag
\baselineskip\fontdimen10 \scriptfont\tw@
\advance\baselineskip\fontdimen12 \scriptfont\tw@
\lineskip\thr@@\fontdimen8 \scriptfont\thr@@
\lineskiplimit\lineskip
\ialign\bgroup
$\m@th\scriptscriptstyle##$\hfil\crcr
}{%
\crcr\egroup\egroup
}
\makeatother
\renewcommand{\substack}[2][c]{\subarray[#1]{c}#2\endsubarray}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% The information shown on the title page %
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\title[\fontseries{rm}\selectfont whateverwecallit]
{\\ QuantNet 2.0 @ GitHub}
\subtitle{ }
%Generalized Exogenous Processes in DSGE:\\ A Bayesian Approach
%Bayesian Estimation of Autoregressive Moving-Average Processes as Exogenous Shock Processes in DSGE Models
% \author[]{\href{mailto:[email protected]}{Jim Beamer}}
\author[Neuhoff]{Daniel Neuhoff}
\institute{\small Humboldt-Universit\"at zu Berlin \hspace{2em} CRC 649}
% Remark: It's Humboldt University's official policy that the name "Humboldt-Universität zu Berlin"
% is NOT translated to foreign languages.
\date{\small November 2015} % or provide fixed date
\pgfdeclareimage[height=2cm]{hu-logo}{../figs/hu_logo}
\pgfdeclareimage[interpolate=true,height=1.15cm]{sfb-logo}{../figs/SFB649_Text}
%\pgfdeclareimage[height=0.95cm]{UBo-logo}{Images/Logo-UBo-h24-RGB}
% \titlegraphic{\vspace{0.25cm}\pgfuseimage{hu-logo}}
% \titlegraphic{\vspace{0.1cm} \pgfuseimage{hu-logo} \hspace{1.5cm} \raisebox{10pt}{\pgfuseimage{sfb-logo}}}
% \titlegraphic{\vspace{0.25cm}\pgfuseimage{UBo-logo}}
\AtBeginDocument{%
\pgfdeclareverticalshading{beamer@headfade}{\paperwidth}
{%
color(0cm)=(HUGrayGreen!50);
color(1cm)=(HUGrayGreen!50)%
% color(0cm)=(bg);
% color(1cm)=(bg)%
}
}
\addtoheadtemplate{\pgfuseshading{beamer@headfade}\vskip-1cm}{}
\AtBeginDocument{%
\pgfdeclareverticalshading{beamer@footfade}{\paperwidth}
{%
color(0cm)=(HUGrayGreen!50);
color(0.5cm)=(HUGrayGreen!50)%
}
}
\addtoheadtemplate{\pgfuseshading{beamer@footfade}\vskip - \paperheight}{}
\let\Tiny=\tiny
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Now the actual text begins: %
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\begin{document}
\setlength{\baselineskip}{2.9ex}
{\setbeamertemplate{footline}{}\frame{\titlepage}}
\addtocounter{framenumber}{-1}
\frame{
\frametitle{Outline}
\tableofcontents
}
\section{GitHub}
\frame{
\frametitle{What is GitHub?}
\begin{itemize}
\item A distributed version control system (Git)
\item A collaboration platform (Hub)
\item Quasi-standard among software developers: \\ 42.9\% of professional software developers use git in some fashion
\end{itemize}
}
\frame{
\frametitle{Why use GitHub?}
\begin{itemize}
\item Version control
\item Distributed development
\item Easy branching and merging
\item Integration with many IDEs
\item Issue management
\end{itemize}
}
\section{Terminology and Workflow}
\frame{
\frametitle{Create GitHub Account}
Go to www.github.com to create an account
\begin{center}
\includegraphics[width=0.8\textwidth]{githubsignup}
\end{center}
}
\frame{
\frametitle{Install GitHub Application}
From www.github.com download and install the desktop application:
\begin{center}
\includegraphics[width=0.8\textwidth]{downloadgithubdesktop}
\end{center}
}
\subsection{Accessing GitHub}
\frame{
\frametitle{GitHub Desktop App}
\begin{center}
\includegraphics[height=0.6\textheight]{githubdesktop}
\end{center}
}
\frame{
\frametitle{Web Interface}
\begin{center}
\includegraphics[height=0.6\textheight]{webinterface}
\end{center}
}
\frame{
\frametitle{Command Line}
\begin{center}
\includegraphics[height=0.6\textheight]{commandline}
\end{center}
}
\frame{
\frametitle{Create Repository}
\begin{itemize}
\item Most basic element of GitHub
\item A project folder containing \textit{all} project files
\item Also contains a revision history for each file
\item Contains an issue tracker
\end{itemize}
Three ways to create a repository:
\begin{enumerate}
\item Desktop app (recommended)
\item Web interface
\item Command line (advanced)
\end{enumerate}
}
\frame{
\frametitle{Develop}
Develop your project using GitHub features where sensible:
\begin{itemize}
\item Manage issues
\item Branch/fork code
\item Commit changes
\item Use pull requests
\end{itemize}
Keep the style guide in mind!
}
\frame{
\frametitle{Manage Issues}
Use GitHub issues to record and discuss
\begin{itemize}
\item Ideas
\item Bugs
\item Enhancements
\item Tasks
\end{itemize}
You get a searchable history of your discussions! \\ \vspace{0.5em}
You can neatly organize any discussion with issue classes
}
\frame{
\frametitle{Branch Code}
Branching allows you to
\begin{itemize}
\item work on a copy of the master branch
\item to make changes without affecting the whole of the code base
\end{itemize}
}
\frame{
\frametitle{Commit Changes}
A commit
\begin{itemize}
\item essentially uploads new versions of files
\item is tracked, so you have a history of changes available
\item can be rolled back
\end{itemize}
}
\frame{
\frametitle{Issue Pull Request}
A pull request
\begin{itemize}
\item asks your collaborators to consider your changes for integration into the master branch (merge)
\item can be issued at any time, also for example to share screenshots
\item can be augmented by a pull request message to ask for help or @mention other contributors in order to induce them to comment
\item initiate a discussion of the changes you made
\end{itemize}
}
\frame{
\frametitle{Merge Branches}
A merge
\begin{itemize}
\item integrates your code into the master branch
\item preserves a history of your changes by keeping the pull requests (searchable)
\end{itemize}
}
\frame{
\frametitle{Finishing up}
\begin{itemize}
\item Create Metainfo.txt containing information about your Quantlet
\item Create readme.md as user guide (good practice)
\item Check your code against style guide (somewhat automated for R code)
\item Inform QuantNet team
\end{itemize}
}
\section{GitHub and QuantNet 2.0}
\frame{
\frametitle{Advantages}
\begin{itemize}
\item QuantNet will be fully integrated with GitHub in the near future!
\item It will be easy for other researchers to find your code
\item Your code will be checked by the audit team!
\end{itemize}
}
\frame{
\frametitle{What I did}
\begin{enumerate}
\item Create GitHub repository
\item Move code into GitHub repository
\item Develop with an eye on style guidelines
\item Write readme.md
\item Declare running version ready for audit
\end{enumerate}
After the audit is complete, the code is forked to a specific GitHub repository and appears on the QuantNet 2.0 page
}
\frame{
\frametitle{What else could one do?}
\begin{itemize}
\item Collaborate with other scientists around the world using the GitHub workflow
\item Fork existing Quantlets in order to improve or extend them (ask the original author!!!!)
\item Use Pulse and Graphs to track contributions and progress
\item Use Milestones to structure a project
\end{itemize}
}
\frame{
\begin{center}
\textbf{Thank you for your attention!}
\end{center}
}
\end{document}