% \documentclass[serif]{beamer} % Serif for Computer Modern math font.
\documentclass[serif, handout]{beamer} % Handout to ignore pause statements

\hypersetup{colorlinks,linkcolor=,urlcolor=red}


\usefonttheme{serif} % Looks like Computer Modern for non-math text -- nice!
\setbeamertemplate{navigation symbols}{} % Suppress navigation symbols
\usetheme{AnnArbor}  % CambridgeUS
% \usetheme{Frankfurt}  % Displays section titles on top: Fairly thin but still swallows some material at bottom of crowded slides
% \usetheme{Berlin} % Displays sections on top
% \usetheme{Berkeley}

\usepackage[english]{babel}
\usepackage{amsmath} % for binom
% \usepackage{graphicx} % To include pdf files!
% \definecolor{links}{HTML}{2A1B81}
% \definecolor{links}{red}
\setbeamertemplate{footline}[frame number] 

\mode<presentation>

\title{Introduction to SAS\footnote{ This slide show is an open-source document. See last slide for copyright information.}}
\subtitle{The last of the great mainframe stats packages}
\date{} % To suppress date

\begin{document}

\begin{frame}
  \titlepage
\end{frame}

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

\begin{frame}
\frametitle{It almost seemed like there was one for every major university} \pause
%\framesubtitle{} 

\vspace{3mm}

\begin{itemize}
    \item \textbf{DATATEXT}: Harvard
    \item \textbf{SPSS}: University of Chicago
    \item \textbf{BMDP}: University of California at Los Angeles
    \item \textbf{SAS}: University of North Carolina at Chapel Hill
    \item \textbf{OMNITAB}: Pennsylvania State University
    \item \textbf{S}: AT\&T Bell labs
\end{itemize}
\end{frame}

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

\begin{frame}
\frametitle{SAS \emph{versus} R}
%\framesubtitle{} 
\begin{itemize}
    \item R is like a motorcycle.
    \item SAS is like a military Humvee. \pause
    \item Except it doesn't break down.
\end{itemize}
\end{frame}
 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

\begin{frame}
\frametitle{SAS File Types}
\framesubtitle{Not a complete list}  \pause
\begin{itemize}
    \item Raw data file  
    \item Program file
    \item Log file 
    \item Results file \pause
    \item[] 
    \item Data Set (Also called Data Table)
    \item Library
\end{itemize}
\end{frame}

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

\begin{frame}
\frametitle{We work with these files}
% \framesubtitle{} 
\begin{itemize}

{\small
    \item \textbf{Raw Data File}: A file consisting of rows and columns of numbers; or maybe some of the columns have letters (character data) instead of numbers. The rows represent observations and the columns represent variables. \pause Can be plain text or in a spreadsheet. \pause
 
    \item \textbf{Program File}: A file consisting of commands that the SAS software tries to follow. You create this file with a text editor. The program file contains a reference to the raw data file, so SAS knows where to find the data. Program files have names like \texttt{reading1.sas}. \pause

    \item \textbf{Log File}: This file is produced by every SAS run, whether it is successful or unsuccessful. It contains a listing of the program file, as well any error messages or warnings. It will have a name like \texttt{reading1.log} or \texttt{reading1-log.html}.\pause
 
    \item \textbf{Results File}: The list file contains the output of the statistical procedures requested by the program file.  Output files have names like \texttt{reading1-Results.pdf}, \texttt{reading1-Results.rtf}, or \texttt{reading1-Results.html}.
} % End size

\end{itemize}
\end{frame}

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

\begin{frame}
\frametitle{Work flow} 
%\framesubtitle{} 
We will run SAS online using a web browser. \pause
\begin{itemize}
    \item Download data file from course website. Edit as needed. \pause
    \item Upload data file to SAS website. \pause
    \item Type SAS program into online editor. The program will contain a reference to the data file.\pause
    \item Run SAS. 
    \item Look at the log file. If there are errors or warnings, fix the program or the data file. You may need to edit the data file on your computer and upload it again. \pause
    \item Run SAS again, repeating until you are satisfied. \pause
    \item Download copies of the log file and the results file. Print for the quiz. \pause
    \item It would be smart to download a copy of your program too, as backup.
\end{itemize}
\end{frame}

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

\begin{frame}
\frametitle{SAS OnDemand} \pause
%\framesubtitle{} 
\begin{itemize}
    \item This is fairly new.
    \item It seems to be the full version.
    \item It's free of charge to anybody with a university email address.
\end{itemize} \pause

\vspace{5mm}
\begin{center}
\href{https://odamid.oda.sas.com} {\texttt{https://odamid.oda.sas.com}}
\end{center} \pause

\begin{itemize}
    \item Create an account.
    \item They will send email with your user id. This takes a few hours.
    \item Go to \href{https://odamid.oda.sas.com} 
                     {\texttt{https://odamid.oda.sas.com}} and log in.
    \item Specific instructions are available at
\begin{center}
\href{http://www.utstat.toronto.edu/~brunner/help/SAS_OnDemand.html} 
{\footnotesize\texttt{http://www.utstat.toronto.edu/$^\sim$brunner/help/SAS\_OnDemand.html}}
\end{center}
and elsewhere.
\end{itemize}
\end{frame}

%\texttt{http://www.utstat.toronto.edu/$^\sim$brunner/help/SAS_OnDemand.html}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

\begin{frame}
\frametitle{Important Rule}
%\framesubtitle{} 
\begin{itemize}
    \item You may not use a classmate's SAS OnDemand account to do your work for this course. \pause
    \item It's too easy to see each other's program code. 
    \item You must have your own account. 
%    \item[] 
    \item If two people use the same account, they will both get zero for the assignment even if there is no academic offence.
\end{itemize}
\end{frame}


%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%


\begin{frame}
\frametitle{Copyright Information}

This slide show was prepared by  \href{http://www.utstat.toronto.edu/~brunner}{Jerry Brunner},
Department of Statistical Sciences, University of Toronto. It is licensed under a 
\href{http://creativecommons.org/licenses/by-sa/3.0/deed.en_US}
     {Creative Commons Attribution - ShareAlike 3.0 Unported License}. Use any part of it as you like and share the result freely. The \LaTeX~source code is available from the course website:

\vspace{5mm}
\href{http://www.utstat.toronto.edu/~brunner/oldclass/441s20} {\small\texttt{http://www.utstat.toronto.edu/$^\sim$brunner/oldclass/441s20}}

\end{frame}


\end{document}

