In Class Handouts can be found here:

General Handouts:
  • syllabus_2010.doc The course syllabus gives information on topics to be covered, homework assignments, and the final project.
  • Import_Excel.doc This document gives information on how to save an Excel file for use with a statistical package and how to import it into SAS.

  • Creating new variables in SAS.
  • Computing New Variables in SAS.doc This document gives detailed information on how to create new variables in a SAS dataset.
  • compute_new_vars.sas This SAS command file goes along with the handout on computing new variables in SAS.
  • employee.sas7bdat This SAS dataset is to be used with the handout on computing new variables in SAS.

  • t-tests in SAS.
  • sas_ttest_2010.doc This handout gives examples of independent samples t-tests, paired t-tests and one-sample t-tests using SAS.
  • ttest.sas This SAS command file goes along with the handout on t-tests using SAS.
  • OWEN.DAT This raw data file is used with the handout on t-tests in SAS.

  • Simple Linear Regression in SAS.
  • sas_simple_regression_2010.doc This handout gives examples of simple linear regression in SAS, and shows how to check the residuals graphically.
  • simple_regression.sas This SAS command file goes along with the handout on simple linear regression using SAS.
  • WERNER2.DAT This raw data file is used with the handout on simple linear regression in SAS.

  • Multiple Linear Regression in SAS.
  • sas_multiple_regression_2010.doc This handout gives examples of correlation matrices, and scatterplot matrices, examples multiple linear regression, checking residuals, and investigating influential data points graphically.
  • multiple_regression.sas This SAS command file goes along with the handout on multiple linear regression using SAS.
  • werner.sas7bdat This permanent SAS dataset is used with the handout on multiple linear regression in SAS.

  • Dummy Variable Regression and Oneway ANOVA in SAS.
  • sas_dummy_var_regression_2010.doc This handout gives examples of creating and using dummy varaibles in a regression setting. It also illustrates how a oneway ANOVA is equivalent to a dummy variable regression.
  • dumvar_regression.sas This SAS command file goes along with the handout on dummy variable regression using SAS.
  • cars.sas7bdat This permanent SAS dataset is used with the handout on dummy variable regression in SAS.

  • Analysis of Covariance Models Using SAS.
  • sas_ancova_2010.doc This handout gives examples of creating and using dummy variables and interaction terms to use in an ANCOVA model setting. It shows how to examine regression models for different groups, and how to compare them, using an ANCOVA model.
  • ancova_models.sas This SAS command file goes along with the handout on ANCOVA models using SAS.
  • htwt.sav This SPSS dataset can be imported to SAS to use for the example on ANCOVA.

  • Oneway frequency tabulations and twoway cross-tabulations using SAS.
  • sas_frequencies_2010.doc This handout gives information on how to use sAS Proc Freq for simple oneway tabulations and twoway cross-tabulations. It also illustrates binomial tests for two-level categorical variables, and goodness of fit tests for categorical variables with more than two levels. It also discusses cross-tabulations and chi-square tests of independence, Fisher's exact test, the Cochran-Armitage test for trend, and the Mantel-Haenszel chi-square test for a linear association between two ordianl categorical variables
  • frequencies.sas This SAS command file goes along with the handout on oneway and twoway tables using SAS.
  • WERNER2.DAT This raw data goes along with the handout on oneway and twoway tables in SAS.
  • cars.sas7bdat This SAS dataset goes along with the handout on oneway and twoway tables in SAS.

  • Odds Ratio and Relative Risk for a 2 by 2 table, and McNemar's test and Cohen's Kappa for Matched Categorical Data
  • sas_frequencies_lecture2_2010.doc This handout gives information on how to use SAS Proc Freq to get an odds ratio and risk ratio for a 2 by 2 table for independent data. It also illustrates using SAS to get McNemar's test of symmetry and Cohen's kappa measure of agreement for matched frequency data.
  • frequencies_lecture2.sas This SAS command file goes along with the handout on oneway and twoway tables using SAS.
  • werner.sas7bdat This SAS dataset goes along with the handout on odds ratios, relative risks, and matched categorical data analysis using Proc Freq in SAS.

  • Logistic Regression Using SAS
  • sas_logistic_regression_2010.doc This handout gives information on how to use SAS Proc Logistic to fit a logistic regression model for a binary response variable.
  • logistic.sas This SAS command file goes along with the handout on oneway and twoway tables using SAS.
  • brca.dat This raw data file goes along with the handout on logistic regression using SAS.

  • Writing out data using SAS
  • Writing out Data Using SAS.doc This handout gives information on how to use SAS to write out data in different formats.
  • writedata.sas This SAS command file goes along with the handout on writing out data using SAS.
  • iris.sas7bdat This SAS dataset goes along with the handout on how to write out data using SAS.

  • Descriptive Statistics and t-tests using SPSS
  • spss_descriptives_ttest.doc This handout gives information on how to use SPSS to read in raw data, carry out simple descriptive statistics and get simple graphs, and carry out independent sample, paired sample and one-sample t-tests.
  • descriptives_ttest.sps This SPSS command file goes along with the handout on descriptive statistics and t-tests.
  • WERNER2.DAT This raw data file goes along with the handout on how to carry out descriptive statistics and t-tests using SPSS.

  • Missing values in SPSS
  • missing_values_in_SPSS.doc This handout gives information on how SPSS handles missing values.

  • Linear regression using SPSS
  • spss_Linear_Regression_2010.doc This handout gives information on how to use SPSS to fit a simple linear regression model, set up dummy variables and fit a dummy variable regression model, fit a oneway ANOVA model, and fit a multiple regression model and check for collinearity, and other model diagnostics.
  • linear_regression.sps This SPSS command file goes along with the handout on linear regression.
  • werner.sav This SPSS data file goes along with the handout on linear regression using SPSS.

  • Q-Q plots using SPSS
  • SPSS_QQPlots.doc This handout shows examples of different distributions of residuals and how they look in an SPSS Q-Q plot.

  • Frequencies and cross-tabs using SPSS
  • spss_frequencies_lecture_2010.doc This handout shows how to create recodes of variables to create categorical variables, how to do a binomial test, a chi-square goodness of fit test, how to calculate an odds ratio and relative risk for a two-by-two table, and how to get a chi-square test of independence for a twoway cross-tabulation. McNemar's test for matched categorical data is also illustrated.
  • frequencies_2010.sps SPSS commands that go with the handout on frequencies and cross-tabs using SPSS.
  • werner.sav Unmatched SPSS data file from the Werner Pill Study.
  • matched.sav Matched SPSS data file from the Werner Pill Study.
  • graders.sav Data set used to illustrate the calculation of Cohen's kappa using SPSS.
  • skincondition.sav Data set used to illustrate the use of Weights to represent frequencies in a cross-tabulation.

  • Logistic Regression Using SPSS
  • spss_logistic_regression_2010.doc This handout shows how to read in raw data, set up missing value codes, use recodes to create new variables, set up dates using SPSS, and fit logistic regression models.
  • logistic_regression.sps SPSS commands that go with the handout on logistic regression using SPSS.
  • brca.dat raw data file to use with the SPSS logistic regression example.

  • Poisson Regression Using SAS
  • sas_poisson_regression_2010.doc This handout shows how to fit a Poisson regression model using SAS, how to create and use an offset variable. How to fit an over-dispersed Poisson model is also illustrated, as well as how to fit a negative binomial model. A GEE model is also illustrated where there are multiple observations per subject.
  • poisson_regression.sas SAS commands that go with the handout on Poisson regression.
  • appletree.sas7bdat SAS dataset to use with the SAS Poisson regression handout.

  • Poisson Regression Using SPSS
  • spss_poisson_regression_2010.doc This handout shows how to fit a Poisson regression model using SPSS, how to create and use an offset variable. How to fit an over-dispersed Poisson model is also illustrated, as well as how to fit a negative binomial model.
  • poisson_regression.sps SPSS commands that go with the handout on Poisson regression.
  • appletree.sas7bdat SAS dataset to use with the SPSS Poisson regression handout. (We will import the SAS dataset to SPSS).