% \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{SAS University Edition} \pause
%\framesubtitle{} 
\begin{itemize}
    \item This is fairly new.
    \item It's almost the full version.
    \item It's free of charge to anybody with a university email address.
\end{itemize} \pause

\vspace{5mm}
\begin{center}
\href{http://www.sas.com/en_us/software/university-edition.html} {\small\texttt{http://www.sas.com/en\_us/software/university-edition.html}}
\end{center}
\end{frame}

\begin{frame}
\frametitle{Features of SAS University Edition}
%\framesubtitle{} 
\begin{itemize}
    \item SAS lives in a virtual linux machine.  \pause 
    \item The linux machine is a Web server and it has SAS installed, and that's about it. \pause
    \item You interact with it through a browser interface called SAS Studio. \pause
    \item With SAS running in the virtual machine, you point your browser to a localhost address. \pause
    \item It feels like you are online, but everything is happening inside your computer. \pause
    \item Because of the browser interface, it really is platform independent. \pause
    \item You get your data into SAS via a shared folder, \pause
           shared between the virtual linux machine and your physical machine.
\end{itemize}
\end{frame}

\begin{frame}
\frametitle{More comments}
%\framesubtitle{} 
\begin{itemize}
    \item It’s a big download -- around 1.8 GB. \pause
    \item Actually it’s two downloads. \pause
    \item First, download the virtualization software, free from Oracle or VMWare. \pause
    \item The SAS download site has good instructions. Follow them \emph{carefully}, because details matter. \pause
    \item Once you connect to localhost, see the FAQ.
    \item The FAQ is actually a well-organized manual.
\end{itemize}
\end{frame}


\begin{frame}
\frametitle{Possible problems}
%\framesubtitle{} 
\begin{itemize}
    \item Slow or flaky internet connection. If it does not work the first time, try again. \pause
    \item The virtual machine requires 1GB of RAM. \pause
    \item Trouble with older operating systems? \pause
    \item Not available in the computer labs. \pause
    \item[] 
    \item You can use SAS Enterprise Edition instead if you wish\pause, but I don't try to support it.
\end{itemize}
\end{frame}

\begin{frame}
\frametitle{Important Rule}
%\framesubtitle{} 
\begin{itemize}
    \item You may not use a classmate's SAS 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 installation. \pause
%    \item[] 
    \item If two people use the same installation of SAS University Edition, 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/441s18} {\small\texttt{http://www.utstat.toronto.edu/$^\sim$brunner/oldclass/441s18}}

\end{frame}


\end{document}

