
Explore predictive modeling in SAS, covering analysis of variance, linear regression, logistic regression, data preparation, sampling, training and validation, scoring, and model performance.
Access downloadable SAS course materials, including SAS programs, data files, and PowerPoint slides when available, with attached resources including zip archives and guidance to match files across lectures.
Access SAS software with SAS on demand for academics, a cloud-based SAS studio; create a profile, verify your email, sign in, and upload course material and files to home folder.
upload data files and sas programs into sas on demand for academics by extracting zip files and organizing them in a dedicated sas base codes folder.
Learn to update SAS OnDemand file paths and directories by adjusting the home folder paths, creating subfolders, and uploading format and data files for SAS programs.
Learn to update SAS programs for SAS on demand for academics by correcting home directory paths, saving updated files as new source programs, and validating runs.
Learn to perform two sample t tests for independent groups using pooled variance when variances are equal, verify assumptions with F tests and QQ plots in SAS proc t test.
Run proc univariate to test normality with the ks test on two state class groups; p values below 0.05 show non-normality, yet the central limit theorem supports using t tests.
Explore one-factor anova within the general linear model to compare means across groups; learn f statistics, ssa, and assumptions for randomized block and two-way designs.
Explore how the GLM procedure tests mean differences in reading scores across parent education groups using SAS ANOVA, revealing a significant difference among the three education levels.
Explore how ANOVA identifies relationships between a categorical predictor and a numeric outcome, and generate predicted values and residuals with the output statement in proc glm.
Examine measures of fit in one-way ANOVA, explain r squared as the proportion of variance explained by the factor in reading scores, and interpret the root mean square error.
Explore the normality assumption for Anova by using the plots option in proc glm to generate diagnostic plots, including the normal quantile plot and histogram of residuals.
Use Levene’s test to check homogeneity of variances in anova and apply the means statement in proc glm; the example shows p=0.09, not rejected.
Explains how to use the Tukey-Kramer procedure with anova to identify which mean differences are significant while controlling the experimentwise error rate, using SAS glm output.
Explore post hoc procedures in ANOVA, including the LSMEANS statement and diffogram, apply Turkey's method of adjustment, and interpret Dunnett comparisons for control versus multiple groups.
Explore the randomized block design to control nuisance factors and improve treatment effect estimates. Apply SAS GLM to test reading score differences across parent education groups, blocking by SMS minutes.
This tutorial demonstrates post hoc analysis for a randomized block design using the lsmeans statement with Tukey adjustment, comparing group means and identifying significant differences.
Assess normality of errors, equal block variance, and no interaction in a randomized block design using plots in proc glm, with normal quantile plots, histograms, and kolmogorov-smirnov tests on residuals.
In unbalanced randomized block designs, use type iii sums of squares and the lsmeans statement for one-factor analysis, and rely on unweighted means for accurate pairwise comparisons via proc glm.
Explore two-factor analysis of variance, a two-way ANOVA with interaction, covering main effects, the interaction concept, and how to model factor A, factor B, and their interaction.
Analyze a two-factor ANOVA on reading scores by parent education level and state cluster. Find a significant interaction and improved model fit, with interpretable least squares means across six groups.
the complete description for this lecture:
Analyzing Simple Effects When Interaction Exists Using the LSMEANS Statement with the SLICE Option
Assess the assumptions of two factor analysis of variance to ensure valid conclusions. Examine random independent observations, normal residuals, and equal variances using GLM diagnostic plots and Kolmogorov-Smirnov tests.
Learn how to prepare input variables for predictive modeling by cleaning data, handling missing values, reducing redundancy, and ensuring preprocessing is applied to training data to prevent information leakage.
Learn to handle missing values with complete case analysis and imputation, using missing value indicators and median imputation, while considering MCAR, MAR, and NMAR patterns in SAS.
Explore categorical input variables in predictive modeling, addressing sparse events and quasi complete separation. Learn to use the Greenacre method to collapse levels and improve logistic regression interpretation.
Use the Greenacre method to collapse state categories, import Excel data with proc import, compute chi-square via proc freq, and use proc means to create state proportions for clustering.
Perform cluster analysis in SAS with proc cluster using Ward's minimum variance method on states data (state, freq, prop). Examine the dendrogram and cluster history for seven clusters.
Determine the optimal cluster count by evaluating chi-square p values and their log p values across seven steps, selecting the cutoff where the reduction is minimal, here two clusters.
Identify a two-cluster solution using proc sql and proc tree, then create a sta_class variable to compare chi square via the Greenacre method.
Apply variable clustering to reduce large input sets by addressing redundancy and relevancy using the VARCLUS procedure. Group highly correlated variables into clusters and select representatives via rotated principal components.
Use sas proc varclus to reduce input redundancy by clustering correlated variables. Select twitter minute as the cluster representative and create gender and state dummies, reporting variance explained.
Screen variables with the score and class procedures, assess relevancy using Spearman and Hoeffding's d, detect non-linear associations, and compare with Pearson via rank scatter plots.
Explore sas proc corr to detect associations using spearman and hoeffding correlations on a reduced input set and a target variable, with data prep and ods outputs.
Transform and merge Spearman and Hoeffding one-row outputs into a final data set, creating eight variable entries with correlation coefficients, p values, and ranks.
Screen inputs for monotonic relevance using Spearman and Hoeffding D, flagging variables with p values over 0.5 as potentially irrelevant and noting any non-monotonic patterns for further empirical logit analysis.
Apply empirical logit to detect non-linear associations in logistic regression, using logit plots by predictor and binning via the rank procedure and proc means to reveal nonlinearity.
Explore the relationship between two continuous variables with scatter plots and correlation coefficients, and learn how exploratory data analysis, regression lines, influential data points, and outliers affect interpretation.
Quantify the association between two continuous variables with the Pearson correlation using the CORR procedure, interpreting strength, direction, and significance alongside scatter plots and descriptive statistics.
Apply multiple linear regression with the reg rac procedure to model risk score from seven predictors, interpreting parameter estimates and f tests to assess contributions among predictors.
Compare measures of fit in multiple linear regression using R-squared and adjusted R-squared, noting that adding predictors inflates R-squared, four predictors can match seven in adjusted R-squared and rmse.
Quantify a predictor's unique impact in a linear regression using squared semi partial correlation to reveal the share of R-squared explained by each predictor for read score beyond others.
This lecture covers detecting collinearity in regression using variance inflation factor and the condition index, with collin and collinoint, and advises deleting predictors or applying ridge or principal component regression.
Learn how to fit a simple linear regression using the SAS GLM procedure and compare it with PROC REG, including dummy coding, class statement, and parameter interpretation.
Learn variable selection for multiple linear regression using proc reg and proc glmselect, comparing all possible subsets with adjusted R-squared and Mallow's Cp, addressing collinearity and model parsimony.
Explore all possible subset selection via proc reg using Mallows Cp and Hocking's criterion, compare candidate models by Cp and p, and identify the most parsimonious top model indexes.
Learn backward elimination in proc reg to remove the least significant predictors by p-values, ending when remaining variables meet p<0.01 and observing adjusted r-squared trends.
Explore forward selection in proc reg by selecting predictors by p-value and r-squared, stopping at 0.01, with final model including rate time minute update, Twitter minute, and status cluster.
demonstrates stepwise variable selection in proc reg, combining forward and backward methods with sl entry and stay, and compares stepwise results to forward selection using proc rac.
Explore the glmselect procedure for variable selection, highlighting stepwise methods, collinearity cautions, and p-value risks; review a SAS glmselect example predicting reading scores.
Explore the four linear regression assumptions—linearity, normality of errors, and constant, independent variance—and use residual plots and transformations or generalized linear models to address violations.
Explore how to check multiple linear regression assumptions in SAS using PROC REG, generating residual plots, diagnostics, and normality checks to verify variance, independence, and model fit.
Identify influential observations in multiple linear regression using regression diagnostics, and deletion statistics. Learn to detect high leverage, high discrepancy, and measure influence with cook's d, dffits, and dfbetas.
Identify influential observations in a SAS multiple linear regression by examining leverage (0.08 cutoff), discrepancy, Cook's D, and dfbetas through plots, illustrated with observation 162 affecting the risk score.
Master logistic regression basics, including the logit and odds, modeling binary outcomes with predictors, dummy variables, and maximum likelihood estimation in SAS proc logistic.
Run a logistic regression with one continuous predictor (read time in minutes) to model the odds of reading past 70, using event equals one, logit link, and ten-minute increments.
Explore logistic regression with a continuous predictor, interpret odds ratios, and assess model fit with AIC, likelihood ratio tests, and confidence intervals; evaluate predictive power using ROC AUC.
Examine plots of posterior probabilities for the event of passing a reading score of 70 based on daily reading time, and note the 0.5 cutoff with x1 equals 17.35 minutes.
Learn to generate the data set and create odds ratio plots with 95% confidence intervals using proc logistic, including plots for unit one and unit ten.
Explore logistic regression with a three-level categorical predictor using effect coding parameterization in SAS, including dummy design variables, class statement handling, and interpretation via odds ratios.
Explore logistic regression with a categorical predictor using reference cell coding, establishing a baseline group and interpreting logit differences, odds ratios, and type III effects in SAS proc logistic.
Learn to run multiple logistic regression in SAS with proc logistic, using a pedu class variable, report odds ratios, and identify predictors such as read time and Twitter.
Master backward elimination in multiple logistic regression with SAS PROC LOGISTIC, starting from a full model and using chi-square tests to remove least significant predictors at a 0.01 level.
Learn forward selection for multiple logistic regression in SAS, starting with the intercept and adding predictors using a 0.01 entry criterion. Explore chi-square tests and the entry criterion.
Explore stepwise selection in multiple logistic regression, combining forward and backward elimination to add or remove predictors under a 0.01 criterion in proc logistic, yielding a model with odds ratios.
Learn how to customize variable selection in multiple logistic regression with forward, backward, and stepwise methods using start, stop, and include options to shape the final model.
Explore best subset selection for multiple logistic regression, using score-based chi-square criteria to choose models from two to six predictors, including dummy variables from a categorical predictor.
Model interaction terms in multiple logistic regression and test their significance. Apply backward elimination under model hierarchy and interpret conditional odds ratios with plots.
learn to score new observations with a multiple logistic regression model using the score statement in proc logistic, including data sets, predicted probabilities p0 and p1, and 0.5 cutoff.
Explore scoring new data with the PLM procedure by restoring a stored logistic model from proc logistic and applying it to new data, comparing predicted logit and P1 results.
Use the code statement within proc logistic to save score code for future use in the multiple logistic regression workflow and create a SAS program for scoring new observations.
Score new data with logistic regression using outmodel and inmodel options (and opmode) in proc logistic, producing p0 and p1 predictions, and note rare-event oversampling requires intercept adjustment before scoring.
Explore how to assess classifier performance, focusing on logistic regression as a predictor, split data into training and validation sets to avoid overfitting and estimate error on future observations.
Use proc surveyselect to create stratified training and validation data sets by 70/30 splits on the target variable, then verify assignments with a selected indicator.
Evaluate classifier performance using the classification table, ROC curve, and gains and lift charts; compare models with hit rate, sensitivity, precision, and specificity.
Use the ctable option in proc logistic to produce classification results for training and validation data, with a 0.5 cutoff and metrics like hit rate, sensitivity, and specificity.
Assess classifier performance against the naive rule and ensure generalizability by balancing training and validation hit rates to avoid overfitting.
Examine how varying cutoff values from 0 to 1 alters sensitivity, specificity, and accuracy in logistic classification, using SAS procedures and classification tables to evaluate and validate results.
Explore how the receiver operating characteristic curve assesses sensitivity and specificity across cutoffs, compares training and validation AUCs, and checks for overfitting using SAS logistic procedures.
Compare seven-predictor and three-predictor models using the roc and roc contrast statements on validation data set, evaluating roc curves and AUC, and prefer the simpler model when differences are non-significant.
Explore measures of model performance with gains and lift charts, focusing on targeting responders by propensity, evaluating depth, lift, and positive predictive value to optimize cutoffs.
Explains how lift charts measure classifier performance for targeting observations, showing lift as the ratio to random performance across depth or cutoff, with SAS plotting steps and reference lines.
The contents of this video is (title does not enough space):
Adjustment to Performance Estimates When Oversampling Rare Events:
The PEVENT Option for Defining Prior Probabilities
Manual Adjustment of the Classification Matrix
Learn to score validation data using adjusted posterior probabilities to account for oversampling of rare events in SAS logistic regression, and compare manual adjustment, offset intercept, and p event methods.
Apply a manually adjusted intercept via an offset to correct biased population priors in oversampled data, enabling unbiased posterior probabilities in logistic regression for validation data.
Automates adjusted posterior probabilities to account for oversampling using the p event option. It compares automatic and manual adjustments and explains when intercept, false positives, and ROC curve are affected.
Apply decision theory to model selection by choosing decision cutoffs that maximize expected profit, using posterior probabilities and a profit matrix to balance true positives and false positives.
Apply decision theory to model selection using estimated posterior probabilities to determine cutoffs that maximize profit. Use logistic regression ROC data to identify depth and cutoff yielding maximum average profit.
This course is designed for anyone preparing to pass the SAS Certified Statistical Business Analyst Using SAS 9.4: Regression and Modeling exam (Exam ID: A00-240). Whether you’re looking to enhance your analytical skills or advance your career, this course provides the essential knowledge and hands-on experience needed to succeed.
Course Highlights
Comprehensive Exam Preparation: A complete guide for the SAS Certified Statistical Business Analyst Using SAS 9.4: Regression and Modeling (Exam ID: A00-240).
Industry-Recognized Certification: This SAS certification is one of the featured credentials offered by SAS, adding value to your professional portfolio.
What You Will Learn
By taking this course, you will gain mastery in:
1. Analysis of Variance (ANOVA)
2. Linear and Logistic Regression
3. Preparing Inputs for Predictive Models
4. Measuring Model Performance
Course Methodology
Step-by-Step Code Explanations: Each SAS program is thoroughly explained, ensuring clarity and understanding.
Structured Learning: Statistical concepts are presented through engaging PowerPoint presentations.
Comprehensive Output Analysis: Detailed explanations of all statistical outputs help solidify your understanding.
End-to-End Predictive Modeling: Covers data preparation, sampling, model building, validation, scoring, and performance measurement.
Additional Course Features
Downloadable Resources: All datasets, SAS programs, and PowerPoint slides used in the course are available for download in Lecture 4 (Note: Materials are for practice only and are protected by copyright).
Quizzes & Assessments: Test your knowledge with quizzes at the end of each section.
Prerequisites
Basic knowledge of statistical analysis is highly recommended for an optimal learning experience.
SAS Software for This Course
This course was originally developed using SAS University Edition but has been fully updated for SAS OnDemand for Academics—a free, web-based version of SAS Studio. The software’s interface, functionality, and appearance remain consistent, ensuring a seamless learning experience.
Detailed instructions for using SAS OnDemand for Academics are provided in Section 2.
Course Ratings & Reviews – A Note from the Instructor
Your honest and thoughtful feedback is highly appreciated! Your ratings help improve course content and enhance your learning experience.
This course is regularly updated to reflect the latest SAS certification changes and incorporate student suggestions, ensuring it remains relevant and valuable. Fair and constructive reviews are essential to improving the course’s quality, and I truly appreciate your honest input. In this field, course ratings above 4.5 are widely regarded as indicators of high-quality content.
Thank you for your support!
References
SAS Certification Prep Guide: Statistical Business Analysis Using SAS 9