SAS Guides

    This page lists every SAS tutorial available on Statology.

    Import Data
    How to Use PROC IMPORT in SAS
    How to Use INFILE Statement in SAS
    How to Import Excel Files into SAS
    How to Import Specific Range from Excel into SAS
    How to Import CSV Files into SAS
    How to Import Text Files into SAS

    Export Data
    How to Use PROC EXPORT in SAS
    How to Export Data from SAS to Excel File
    How to Export Data from SAS to CSV File
    How to Export Data from SAS to Text File

    Descriptive Statistics
    How to Use Proc Summary in SAS
    How to Use NWAY in Proc Summary in SAS
    How to Use Proc Contents in SAS
    How to Use Proc SURVEYSELECT in SAS
    How to Use Proc Univariate for Normality Tests in SAS
    How to Use Proc Univariate by Group in SAS
    How to Use Proc Tabulate in SAS
    How to Use Proc Compare in SAS
    How to Use Proc Append in SAS
    How to Use Proc Format in SAS
    How to Use Proc Print in SAS
    How to Use Proc Report in SAS
    How to Use Proc Rank in SAS
    How to Use Proc Sort in SAS
    How to Use Proc Sort with NODUPKEY in SAS
    How to Use Proc Sort with KEEP Statement in SAS
    How to Use PROC STDIZE in SAS
    How to Use PROC REG in SAS
    How to Use PROC GLMSELECT in SAS
    How to Use PROC FREQ by Group in SAS
    How to Use PROC FREQ with ORDER Option in SAS
    How to Use PROC FREQ & Show No Percentages in SAS
    How to Use PROC FREQ with WHERE Statement in SAS
    How to Use LSMEANS Statement in SAS
    How to Identify Outliers in SAS
    How to Use the IN= Option in SAS
    How to Create a Correlation Matrix in SAS
    How to Calculate Correlation in SAS
    How to Calculate Percentiles in SAS
    How to Calculate Quartiles in SAS
    How to Calculate Deciles in SAS
    How to Calculate Z-Scores in SAS
    How to Calculate Skewness & Kurtosis in SAS
    How to Calculate R-Squared in SAS
    How to Calculate RMSE in SAS
    How to Calculate Cook’s Distance in SAS
    How to Calculate Odds Ratios in SAS
    How to Calculate AIC in SAS
    How to Create Tables in SAS
    How to Create Frequency Tables in SAS
    How to Create Pivot Tables in SAS
    How to Calculate Descriptive Statistics in SAS
    How to Calculate Mean, Median, & Mode in SAS
    How to Display Median in PROC MEANS in SAS
    How to Display IQR in PROC MEANS in SAS
    How to Use PROC MEANS with CLASS Statement in SAS
    How to Count Distinct Values in SAS
    How to Sum Across Columns in SAS
    How to Calculate Lagged Values in SAS
    How to Calculate a Weighted Average in SAS
    How to Calculate a Moving Average in SAS
    How to Calculate Standard Deviation in SAS
    How to Calculate a Cumulative Sum in SAS
    How to Calculate the Sum by Group in SAS
    How to Calculate the Mean by Group in SAS
    How to Count Observations by Group in SAS
    How to Perform Principal Components Analysis in SAS
    How to Use PROC CLUSTER in SAS

    Visualizations
    How to Create Line Plots in SAS
    How to Create Bar Charts in SAS
    How to Create Pie Charts in SAS
    How to Create Histograms in SAS
    How to Specify Number of Bins in Histogram in SAS
    How to Create Scatter Plots in SAS
    How to Create a Scatter Plot Matrix in SAS
    How to Create Scatter Plot with Regression Line in SAS
    How to Create Boxplots by Group in SAS
    How to Plot Groups Using PROC SGPLOT in SAS
    How to Use PROC SGPANEL in SAS
    How to Plot Means with Standard Error Bars in SAS
    How to Create a Q-Q Plot in SAS
    How to Create a Residual Plot in SAS

    Statistical Tests
    How to Perform a One Sample t-Test in SAS
    How to Perform a Two Sample t-Test in SAS
    How to Perform a Paired Samples t-Test in SAS
    How to Perform Welch’s t-Test in SAS
    How to Perform a Mann-Whitney U Test in SAS
    How to Perform a Wilcoxon Signed Rank Test in SAS
    How to Perform a Two Proportion Z-Test in SAS
    How to Perform an F-Test in SAS
    How to Perform a Chi-Square Goodness of Fit Test in SAS
    How to Perform a Chi-Square Test of Independence in SAS
    How to Use the CINV Function in SAS
    How to Use the TINV Function in SAS
    How to Use the FINV Function in SAS
    How to Perform Fisher’s Exact Test in SAS
    How to Perform a Kolmogorov-Smirnov Test in SAS
    How to Perform a Shapiro-Wilk Test in SAS
    How to Perform Levene’s Test in SAS
    How to Perform a Breusch-Pagan Test in SAS
    How to Perform White’s Test in SAS
    How to Calculate Cronbach’s Alpha in SAS
    How to Calculate Confidence Intervals in SAS

    Regression
    How to Perform Simple Linear Regression in SAS
    How to Perform Multiple Linear Regression in SAS
    How to Perform Polynomial Regression in SAS
    How to Perform Quantile Regression in SAS
    How to Perform Logistic Regression in SAS
    How to Perform Stepwise Regression in SAS
    How to Perform a Box-Cox Transformation in SAS
    How to Calculate Variance Inflation Factor (VIF) in SAS
    How to Create a ROC Curve in SAS

    ANOVA
    How to Interpret ANOVA Results in SAS
    How to Perform a One-Way ANOVA in SAS
    How to Perform a Two-Way ANOVA in SAS
    How to Perform a Repeated Measures ANOVA in SAS
    How to Perform a Kruskal-Wallis Test in SAS
    How to Perform Tukey’s Test in SAS
    How to Perform Scheffe’s Test in SAS

    Data Munging
    How to Create Comments in SAS
    How to Use the DATA Step in SAS
    How to Use the %LET Statement in SAS
    How to Subset Data in SAS
    How to Delete Rows in SAS
    How to Delete Datasets in SAS
    How to Create an Empty Dataset in SAS
    How to Normalize Data in SAS
    How to Use a DO UNTIL Statement in SAS
    How to Use a DO WHILE Statement in SAS
    How to Use IF-THEN-DO in SAS
    How to Use IF-THEN-ELSE in SAS
    How to Use SELECT-WHEN in SAS
    How to Use CASE WHEN in SAS
    How to Use FIRST. and LAST. Variables in SAS
    How to Remove Duplicates in SAS
    How to Remove Leading Zeros in SAS
    How to Use Z Format to Add Leading Zeros in SAS
    How to Rename Variables in SAS
    How to Reorder Variables in SAS
    How to Label Variables in SAS
    How to Remove Variable Labels in SAS
    How to Add Titles in SAS
    How to Use DO Loops in SAS
    How to Use KEEP and DROP in SAS
    How to Add Row Numbers in SAS
    How to Round Numbers in SAS
    How to Perform a Left Join in SAS
    How to Perform an Inner Join in SAS
    How to Perform an Outer Join in SAS
    How to Perform One-to-Many Merge in SAS
    How to Use (in=a) in Merge Statement in SAS
    How to Merge If A Not B in SAS
    How to Merge Datasets Based on Two Variables in SAS
    How to Perform Fuzzy Matching in SAS
    How to Use PROC COPY in SAS
    How to Use PROC DELETE in SAS
    How to Use _N_ in SAS
    How to Use HAVING Clause Within PROC SQL in SAS
    How to Use UPDATE Within PROC SQL in SAS
    How to Use UNION in PROC SQL in SAS
    How to Use EXCEPT in PROC SQL in SAS
    How to Use SELECT DISTINCT in PROC SQL in SAS
    How to Format Date Values in PROC SQL in SAS
    How to Use IF Statement in PROC SQL in SAS
    How to Use the IN Operator in PROC SQL in SAS
    How to Use the NOT IN Operator in SAS
    How to Use the NOT EQUAL Operator in SAS
    How to Use the BETWEEN Operator in SAS
    How to Use ORDER BY in PROC SQL in SAS
    How to Use the WHERE Operator in PROC SQL in SAS
    How to Use the LIKE Operator in PROC SQL in SAS
    How to Use CONTAINS Operator in PROC SQL in SAS
    How to Create New Variables in SAS
    How to Perform a Log Transformation in SAS
    How to Use Datalines Statement in SAS
    How to Use CARDS Statement in SAS
    How to Use the LENGTH Statement in SAS
    How to Use the RETAIN Statement in SAS
    How to Create Dummy Variables in SAS
    How to Concatenate Strings in SAS
    How to Extract Substring from Right in SAS
    How to Extract Numbers from String in SAS
    How to Remove Commas from String in SAS
    How to Remove Special Characters from Strings in SAS
    How to Remove First Character from String in SAS
    How to Remove Last Character from String in SAS
    How to Change Length of Character Variables in SAS
    How to Display Values in Dollar Format in SAS
    How to Display Values in Percent Format in SAS
    How to Display Values in Time Format in SAS
    How to Concatenate Datasets in SAS
    How to Use WHERE Option with SET in SAS
    How to Use SET Statement with Multiple Datasets in SAS
    How to Select a Random Sample in SAS
    How to Select the First N Rows in SAS
    How to Use the ANYALPHA Function in SAS
    How to Use the ANYDIGIT Function in SAS
    How to Use the CEIL Function in SAS
    How to Use the FLOOR Function in SAS
    How to Use the MISSING Function in SAS
    How to Use the COUNTW Function in SAS
    How to Use the CMISS Function in SAS
    How to Use the NMISS Function in SAS
    How to Use the INTNX Function in SAS
    How to Use the INTCK Function in SAS
    How to Use the MAX Function in SAS
    How to Use the MIN Function in SAS
    How to Use the MOD Function in SAS
    How to Use the MONOTONIC Function in SAS
    The Difference Between FIND vs. INDEX in SAS
    How to Use the FIND Function in SAS
    How to Use the FINDC Function in SAS
    How to Use the FINDW Function in SAS
    How to Use the LEFT Function in SAS
    How to Use the PRXCHANGE Function in SAS
    How to Use the PRXMATCH Function in SAS
    How to Use the RANUNI Function in SAS
    How to Use the SUBSTR Function in SAS
    How to Use the SCAN Function in SAS
    How to Use the TRANSLATE Function in SAS
    How to Use the TRANWRD Function in SAS
    How to Use the COMPBL Function in SAS
    How to Use the COMPRESS Function in SAS
    How to Use the COALESCE Function in SAS
    How to Use the INDEX Function in SAS
    How to Use the INDEXC Function in SAS
    How to Use the INDEXW Function in SAS
    How to Use the LENGTH Function in SAS
    How to Use CAT, CATT, CATS & CATX Functions in SAS
    How to Use PROC TRANSPOSE in SAS
    How to Split Strings by Delimiter in SAS
    How to Generate Random Numbers in SAS
    How to Calculate Absolute Values in SAS
    How to Filter Rows that Contain String in SAS
    How to Replace Characters in a String in SAS
    How to Remove Rows with Missing Values in SAS
    How to Count Missing Values in SAS
    How to Replace Missing Values with Zero in SAS
    How to Use IF OR Logic in SAS
    How to Use IF AND Logic in SAS
    How to Check if Dataset Exists in SAS
    How to Use the TODAY Function in SAS
    How to Use DAY, MONTH, and YEAR Functions in SAS
    How to Get Day of Week from Date in SAS
    How to Use the MDY Function in SAS
    How to Add Days to Date in SAS
    How to Convert Datetime to Date in SAS
    How to Calculate Difference Between Two Dates in SAS
    How to Select Observations Which are Not Null in SAS
    How to Convert Numeric to Character with Leading Zeros in SAS
    How to Convert Numeric Variable to Character in SAS
    How to Convert Numeric Variable to Date in SAS
    How to Convert Character Variable to Numeric in SAS
    How to Convert Character Variable to Date in SAS
    How to Convert Strings to Uppercase, Lowercase & Proper Case in SAS
    The Difference Between PUT vs. INPUT in SAS