Files
Home Syllabus Software Topics Covered Articles & Links Files Class Materials Class Recordings Assignments

 

Annotated Example on Simple Linear Regression

Matrix Algebra Examples using SAS Proc IML
    Chapter 5 Problem 1
    Chapter 5 Problem 2
    Chapter 5 Problem 4
    Chapter 5 Problem 9
    Chapter 5 Problem 10
    Chapter 5 Problem 23

Solution to Problems 9-13 in Chapter 6
    Write-up
    SAS Code

    Data Set

Example displaying Confidence Intervals and Prediction Intervals

Example on Partial and Sequential SS

Example on General Linear Hypothesis
    pdf

Solution to Problems 4 and 5 in Chapter 8
    SAS Code

Example on Variable Selection
    pdf

Example on Partial Regression Leverage Plots

Example on Influence Diagnostics
    Dataset

Example on Multicollinearity
    SAS dataset

Example on Influential Observations and Multicollinearity

Example on Weighted Least Squares Regression
    Dataset

Capstone Regression Example

SAS Macro for computing a Confidence Interval for the population correlation coefficient r based on Fisher's z transformation
        CI_for_r.sas
Example using CI_for_r.sas
        CI_for_r Example.sas

SAS Macro for assessing normality
        Normtest.sas

SAS Macro for producing a boxplot for a single group
        BoxPlot1.sas

SAS Macro for Levene's Test
        Levene.sas

SAS Code for using PROC BOXPLOT to create a boxplot of residuals
        NKNW0306a.

Description of SAS Macro for producing a matrix of (side-by-side) scatterplots
        ScatMat.txt

SAS Macro for producing a matrix of (side-by-side) scatterplots
        ScatMat.sas

SAS syntax for using ScatMat to produce plots for Problem 6.5(a)
        NKNW605a.sas

SAS Code for Problem 7.5, producing sequential SS and the corresponding sequential F tests
        NKNW0705.sas

SAS Code for an example problem involving fitting a third order polynomial regression using
a centered predictor x.  (Problem from the fourth edition.)
        NKNW0733.sas

Example on One Way ANOVA

SAS Code for an Interval Plot: Ch17Pr13a

Example using Orthogonal Polynomial Contrasts
        Insulin data set

Table of Coefficients of Orthogonal Polynomial Contrasts

Using SAS PROC IML to generate coefficients for Orthogonal Polynomial Contrasts

SAS Macro for generating a polynomial contrast for use in a CONTRAST statement in PROC GLM (assuming equal N's and equal spacing)

SAS Macro for generating a polynomial contrast for use in a CONTRAST statement in PROC GLM (allowing unequal N's and unequal spacing)

Example on Two Way ANOVA - Equal n - No Interaction

Example on Two Way ANOVA with no Interaction 
        Data for Two Way ANOVA

        Data Table for Two Way ANOVA

Example on Two Way ANOVA with Interaction

Solution to Exercise 32 in Chapter 19

Example on Three Way ANOVA with 3-way Interaction

Example on Three Way ANOVA without 3-way Interaction

Example on One Way Analysis of Covariance

Example on Two Way Analysis of Covariance

Example on Randomized Block Design

Example on Nested Design

Repeated Measures Designs:
    One repeated measures factor
    One repeated measures factor (2)
    One repeated measures factor (3)
    One repeated measures factor (AR(1))

    Two repeated measures factors
    One between subjects factor & one repeated measures factor
    Two between subjects factors & one repeated measures factor

 PROC IMPORT Example
    Dataset for PROC IMPORT Example

Example on Logistic Regression

Example on Nonlinear Regression
    Calcium Dataset

Poisson Regression Trains Example