Welcomed to our newly redesigned course notes! Please update your bookmarks accordingly.

STAT 505 | Applied Multivariate Statistical Analysis
  • Department of Statistics
  1. Resources
  2. SAS Programs
Penn State Eberly College of Science Penn State Eberly College of Science
  • About this course
  • Lessons
    • 0: Matrices and Vectors
    • 1  Measures of Central Tendency, Dispersion and Association
    • 2  Linear Combinations of Random Variables
    • 3  Graphical Display of Multivariate Data
    • 4  Multivariate Normal Distribution
    • 5  Sample Mean Vector and Sample Correlation and Related Inference Problems
    • 6  Multivariate Conditional Distribution and Partial Correlation
    • 7  Inferences Regarding Multivariate Population Mean
    • 8  Multivariate Analysis of Variance (MANOVA)
    • 9  Repeated Measures Analysis
    • 10  Discriminant Analysis
    • 11  Principal Components Analysis (PCA)
    • 12  Factor Analysis
    • 13  Canonical Correlation Analysis
    • 14  Cluster Analysis
  • Resources
    • SAS Programs
  1. Resources
  2. SAS Programs

SAS Programs

SAS
Data Files

These are links to examples used in this course along with the necessary files or data sets that are required. Use this list to review the concepts and procedures that are covered in this course. Follow the link to the page within the course for more detailed explanations, animated walk-throughs of these examples, and/or additional related files.

Lesson Example Topics Data files
Lesson 1 Example 1.5 Finding descriptive statistics nutrient.csv
nutrient2.lst
nutrient_tf.csv
Lesson 1 Example 1.7 Generalized variance nutrient_tf.csv
Lesson 3 Example 3.1 Graphing nutrient2.sas
Lesson 4 Example 4.4 Producing a covariance matrix for a dataset wechsler.csv
wechsler.sas
wechsler.lst
Lesson 5 Example 5.4 Interval estimates for the population mean mineral.csv
mineral.csv
CI_pop_means.sas
Lesson 5 Example 5.5 Inference for correlation wechsler.csv
wechsler.sas
Lesson 6 Example 6.2 Partial Correlation wechsler2.sas
wechsler2.lst
Lesson 7 Example 7.1 Hotellings \(T^2\) test nutrient_tf.csv
nutrient4.sas
nutrient4.lst
Lesson 7 Example 7.3 Simultaneous confidence intervals nutrient5.sas
nutrient5.lst
Lesson 7 Example 7.4 Simultaneous confidence intervals nutrient5.sas
Lesson 7 Example 7.5 Profile plots nutrient6.sas
Lesson 7 Example 7.9 Paired Hotelling’s \(T^2\) test spouse.csv
spouse.sas
spouse.lst
Lesson 8 Example 8.1 MANOVA pottery.csv
potterya.sas
Lesson 7 Example 7.10 Simultaneous confidence intervals spouse1a.sas
nutrient5.sas
spouse1.sas
nutrient6.sas
Lesson 7 Example 7.11 Paired Hotelling’s \(T^2\) test: Matching Perceptions spouse2.sas
Lesson 7 Example 7.13 2 Sample Hotelling’s \(T^2\) test swiss3.csv
swiss10.sas
swiss10.lst
Lesson 7 Example 7.14 1 Sample Hotelling’s \(T^2\) test nutrient8.sas
Lesson 7 Example 7.15 Simultaneous confidence intervals swiss11.sas
swiss11.lst
Lesson 7 Example 7.16 Bonferroni corrected confidence intervals swiss11.sas
swiss11.lst
Lesson 7 Example 7.17 Profile plots swiss13b.sas
Lesson 7 Example 7.18 Unequal covariance matrices swiss16.sas
swiss16.lst
Lesson 8 Example 8.2 MANOVA assumptions pottery2.sas
Lesson 8 Example 8.3 MANOVA pottery.sas
pottery1.sas
Lesson 8 Example 8.4 ANOVA pottery.sas
Lesson 8 Example 8.8 Orthogonal contrasts pottery.sas
Lesson 8 Example 8.9 Hypothesis tests pottery.sas
Lesson 8 Example 8.11 MANOVA table rice.csv
rice.sas
Lesson 9 Example 9.2 Split plot ANOVA dog1.csv
dog2.sas
Lesson 10 Example 10.4 Linear discriminant analysis insect.csv
insect.sas
Lesson 10 Example 10.6 Quadratic discriminant analysis swiss3.csv
swiss9.sas
Lesson 11 Example 11.2 Principal component analysis places.csv
places.sas
Lesson 11 Example 11.4 Principal component analysis with standardization places1.sas
Lesson 12 Example 12.1 Principal component method places_tf.csv
Lesson 12 Example 12.2 Communalities places2.sas
places_tf.csv
Lesson 12 Example 12.3 Maximum likelihood estimation method places3.sas
places_tf.csv
Lesson 13 Example 13.1 Canonical correlation analysis sales.csv
sales.sas
Lesson 14 Example 14.2 Agglomerative methods wood.csv
wood1.sas
Lesson 14 Example 14.3 Ward’s method wood5.sas
Lesson 14 Example 14.4 Initial clusters wood6.sas
14  Cluster Analysis
Source Code
---
categories: [SAS, Data Files] # Add your categories here
image: /assets/sasprogramcard.png # change the image path 
toc: false
page-layout: full
---

# SAS Programs {.unnumbered}

These are links to examples used in this course along with the necessary files or data sets that are required. Use this list to review the concepts and procedures that are covered in this course. Follow the link to the page within the course for more detailed explanations, animated walk-throughs of these examples, and/or additional related files.


| Lesson    | Example                              | Topics    | Data files                                                                                                                                                                 |
| :-------- | :----------------------------------- | :--- | :------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| Lesson 1  | @exm-example-1-5                     | Finding descriptive statistics    | [nutrient.csv](data_files/nutrient.csv){download="" target="_blank"}<br>[nutrient2.lst](data_files/nutrient2.lst){download="" target="_blank"}<br>[nutrient_tf.csv](data_files/nutrient_tf.csv){download="" target="_blank"}                                      |
| Lesson 1  | @exm-example-1-7                     | Generalized variance    | [nutrient_tf.csv](data_files/nutrient_tf.csv){download="" target="_blank"}                                                                                                                              |
| Lesson 3  | @exm-example-3-1                     |  Graphing   | [nutrient2.sas](data_files/nutrient2.sas){download="" target="_blank"}                                                                                                                                  |
| Lesson 4  | @exm-example-4-4                     |  Producing a covariance matrix for a dataset   | [wechsler.csv](data_files/wechsler.csv){download="" target="_blank"}<br>[wechsler.sas](data_files/wechsler.sas){download="" target="_blank"}<br>[wechsler.lst](data_files/wechsler.lst){download="" target="_blank"}                                              |
| Lesson 5  | @exm-example-5-4                     |  Interval estimates for the population mean   | [mineral.csv](data_files/mineral.csv){download="" target="_blank"}<br>[mineral.csv](data_files/mineral.csv){download="" target="_blank"}<br>[CI_pop_means.sas](data_files/CI_pop_means.sas){download="" target="_blank"}                                          |
| Lesson 5  | @exm-example-5-5                     |  Inference for correlation   | [wechsler.csv](data_files/wechsler.csv){download="" target="_blank"}<br>[wechsler.sas](data_files/wechsler.sas){download="" target="_blank"}                                                                                         |
| Lesson 6  | @exm-example-6-2                     |  Partial Correlation   | [wechsler2.sas](data_files/wechsler2.sas){download="" target="_blank"}<br>[wechsler2.lst](data_files/wechsler2.lst){download="" target="_blank"}                                                                                     |
| Lesson 7  | @exm-example-7-1                     |Hotellings $T^2$ test     | [nutrient_tf.csv](data_files/nutrient_tf.csv){download="" target="_blank"}<br>[nutrient4.sas](data_files/nutrient4.sas){download="" target="_blank"}<br>[nutrient4.lst](data_files/nutrient4.lst){download="" target="_blank"}                                    |
| Lesson 7  | @exm-example-7-3                     |  Simultaneous confidence intervals   | [nutrient5.sas](data_files/nutrient5.sas){download="" target="_blank"}<br>[nutrient5.lst](data_files/nutrient5.lst){download="" target="_blank"}                                                                                     |
| Lesson 7  | @exm-example-7-4                     |   Simultaneous confidence intervals   | [nutrient5.sas](data_files/nutrient5.sas){download="" target="_blank"}                                                                                                                                  |
| Lesson 7  | @exm-example-7-5                     |  Profile plots   | [nutrient6.sas](data_files/nutrient6.sas){download="" target="_blank"}                                                                                                                                  |
| Lesson 7  | @exm-example-7-9                     | Paired Hotelling's $T^2$ test    | [spouse.csv](data_files/spouse.csv){download="" target="_blank"}<br>[spouse.sas](data_files/spouse.sas){download="" target="_blank"}<br>[spouse.lst](data_files/spouse.lst){download="" target="_blank"}                                                          |
| Lesson 8  | @exm-example-8-1-pottery-data-manova | MANOVA    | [pottery.csv](data_files/pottery.csv){download="" target="_blank"}<br>[potterya.sas](data_files/potterya.sas){download="" target="_blank"}                                                                                           |
| Lesson 7  | @exm-example-7-10                    | Simultaneous confidence intervals    | [spouse1a.sas](data_files/spouse1a.sas){download="" target="_blank"}<br>[nutrient5.sas](data_files/nutrient5.sas){download="" target="_blank"}<br>[spouse1.sas](data_files/spouse1.sas){download="" target="_blank"}<br>[nutrient6.sas](data_files/nutrient6.sas){download="" target="_blank"} |
| Lesson 7  | @exm-example-7-11                    | Paired Hotelling's $T^2$ test: Matching Perceptions    | [spouse2.sas](data_files/spouse2.sas){download="" target="_blank"}                                                                                                                                      |
| Lesson 7  | @exm-example-7-13                    |   2 Sample Hotelling's $T^2$ test  | [swiss3.csv](data_files/swiss3.csv){download="" target="_blank"}<br>[swiss10.sas](data_files/swiss10.sas){download="" target="_blank"}<br>[swiss10.lst](data_files/swiss10.lst){download="" target="_blank"}                                                      |
| Lesson 7  | @exm-example-7-14                    | 1 Sample Hotelling's $T^2$ test    | [nutrient8.sas](data_files/nutrient8.sas){download="" target="_blank"}                                                                                                                                  |
| Lesson 7  | @exm-example-7-15                    | Simultaneous confidence intervals    | [swiss11.sas](data_files/swiss11.sas){download="" target="_blank"}<br>[swiss11.lst](data_files/swiss11.lst){download="" target="_blank"}                                                                                            |
| Lesson 7  | @exm-example-7-16                    |  Bonferroni corrected confidence intervals   | [swiss11.sas](data_files/swiss11.sas){download="" target="_blank"}<br>[swiss11.lst](data_files/swiss11.lst){download="" target="_blank"}                                                                                             |
| Lesson 7  | @exm-example-7-18                    |  Profile plots   | [swiss13b.sas](data_files/swiss13b.sas){download="" target="_blank"}                                                                                                                                    |
| Lesson 7  | @exm-example-7-19                    |  Unequal covariance matrices   | [swiss16.sas](data_files/swiss16.sas){download="" target="_blank"}<br>[swiss16.lst](data_files/swiss16.lst){download="" target="_blank"}                                                                                             |
| Lesson 8  | @exm-example-8-2                     |  MANOVA assumptions   | [pottery2.sas](data_files/pottery2.sas){download="" target="_blank"}                                                                                                                                    |
| Lesson 8  | @exm-example-8-3                     | MANOVA    | [pottery.sas](data_files/pottery.sas){download="" target="_blank"}<br>[pottery1.sas](data_files/pottery1.sas){download="" target="_blank"}                                                                                           |
| Lesson 8  | @exm-example-8-4                     | ANOVA    | [pottery.sas](data_files/pottery.sas){download="" target="_blank"}                                                                                                                                      |
| Lesson 8  | @exm-example-8-8                     | Orthogonal contrasts    | [pottery.sas](data_files/pottery.sas){download="" target="_blank"}                                                                                                                                      |
| Lesson 8  | @exm-example-8-9                     | Hypothesis tests   | [pottery.sas](data_files/pottery.sas){download="" target="_blank"}                                                                                                                                      |
| Lesson 8  | @exm-example-8-11                    | MANOVA table    | [rice.csv](data_files/rice.csv){download="" target="_blank"}<br>[rice.sas](data_files/rice.sas){download="" target="_blank"}                                                                                                         |
| Lesson 9  | @exm-example-9-2                     | Split plot ANOVA    | [dog1.csv](data_files/dog1.csv){download="" target="_blank"}<br>[dog2.sas](data_files/dog2.sas){download="" target="_blank"}                                                                                                         |
| Lesson 10 | @exm-example-10-4                    | Linear discriminant analysis   | [insect.csv](data_files/insect.csv){download="" target="_blank"}<br>[insect.sas](data_files/insect.sas){download="" target="_blank"}                                                                                                 |
| Lesson 10 | @exm-example-10-6                    | Quadratic discriminant analysis   | [swiss3.csv](data_files/swiss3.csv){download="" target="_blank"}<br>[swiss9.sas](data_files/swiss9.sas){download="" target="_blank"}                                                                                                 |
| Lesson 11 | @exm-example-11-2                    | Principal component analysis   | [places.csv](data_files/places.csv){download="" target="_blank"}<br>[places.sas](data_files/places.sas){download="" target="_blank"}                                                                                                 |
| Lesson 11 | @exm-example-11-3                    |  Principal component analysis with standardization   | [places1.sas](data_files/places1.sas){download="" target="_blank"}                                                                                                                                      |
| Lesson 12 | @exm-example-12-1                    |  Principal component method   | [places_tf.csv](data_files/places_tf.csv){download="" target="_blank"}                                                                                                                                  |
| Lesson 12 | @exm-example-12-1b                    | Communalities    | [places2.sas](data_files/places2.sas){download="" target="_blank"}<br>[places_tf.csv](data_files/places_tf.csv){download="" target="_blank"}                                                                                         |
| Lesson 12 | @exm-example-12-2                    | Maximum likelihood estimation method    | [places3.sas](data_files/places3.sas){download="" target="_blank"}<br>[places_tf.csv](data_files/places_tf.csv){download="" target="_blank"}                                                                                         |
| Lesson 13 | @exm-example-13-1-sales              | Canonical correlation analysis    | [sales.csv](data_files/sales.csv){download="" target="_blank"}<br>[sales.sas](data_files/sales.sas){download="" target="_blank"}                                                                                                     |
| Lesson 14 | @exm-woodyard-hammock-data           | Agglomerative methods    | [wood.csv](data_files/wood.csv){download="" target="_blank"}<br>[wood1.sas](data_files/wood1.sas){download="" target="_blank"} 
| Lesson 14 | @exm-example-14-3                    |  Ward's method   | [wood5.sas](data_files/wood5.sas){download="" target="_blank"}                                                                                                                                          |
| Lesson 14 | @exm-example-14-5                    |  Initial clusters   | [wood6.sas](data_files/wood6.sas){download="" target="_blank"}                                                                                                                                          |                                                                                                      |
: {.w-auto  .mx-auto .row-header .table-responsive .striped}

Except where otherwise noted, content on this site is licensed under a CC BY-NC 4.0 license.

BYNC

OPEN.ED@PSU

Cookie Preferences
Privacy | Accessibility | Copyright
The Pennsylvania State University © |
Leave Us Feedback