Data Analysis
Survey Response Analysis

This script creates a survey dataset from embedded data and analyzes the frequency distribution of responses to each ...

View code
ETL
Sans titre

Demonstration of one-to-one merging of SAS datasets, including data creation, prior sorting of datasets, and display ...

View code
Statistical
Seed Germination Analysis (Williams 1982)

Statistical analysis of seed germination data (Crowder 1978) comparing logistic models with and without Williams' sca...

View code
Statistical
Analysis of Vertebral Fractures using a Poisson Model

This SAS script prepares internal data on vertebral fractures and performs a statistical analysis using a quasi-likel...

View code
ETL
Practice: Recoding Missing Data

Educational script creating a 'health_study' dataset via datalines. Recoding steps are mentioned in comments but not ...

View code
Data Manipulation
Mastering PROC CONTENTS: How to View SAS Table Metadata and Variable Attributes

Displays the structure and metadata of the SASHELP.BASEBALL table.

View code
Statistics
Descriptive Analysis I - Measures of Central Tendency

This SAS script performs a descriptive analysis of central tendency measures (mean, median, mode) for participants' h...

View code
Général
Sans titre

Educational script demonstrating SAS code optimization by replacing repetitive instructions with arrays and DO loops ...

View code
ETL
Interleaving SAS Data Sets

This SAS script demonstrates two methods for combining and sorting (interleaving) data sets: concatenation followed b...

View code
Statistics
Numerical Descriptive Analysis of Variances

This SAS script performs a numerical descriptive analysis on an internally created dataset to demonstrate the variabi...

View code
Général
Sans titre

Educational script illustrating the optimization of missing value recoding using arrays (ARRAY) and loops.

View code
Statistical
Toxoplasmosis Analysis - Efron Example

Statistical analysis of toxoplasmosis data using generalized linear mixed models (GLIMMIX) and generalized linear mod...

View code
ETL
Interleaving SAS Data Sets

Creates and interleaves multiple SAS data sets.

View code
Statistical
Survival Analysis - Laryngeal Cancer (Example 1.8)

This script analyzes the survival times of male patients with laryngeal cancer. It prepares the data, creates dummy v...

View code
Statistical
Random Assignment of Subjects to Groups

This SAS script demonstrates the use of a DO loop for the random assignment of subjects to treatment or control group...

View code
Statistical
Ille-et-Vilaine Esophageal Cancer Study (Tuyns et al., 1977)

This SAS script analyzes data from the Ille-et-Vilaine esophageal cancer study (Tuyns et al., 1977). It prepares raw ...

View code
Statistical
Descriptive Numerical Analysis of Height and Weight Variables

This SAS script performs a descriptive analysis of numerical variables (height, weight) from internally created data,...

View code
Statistical
Analysis of Electronic Failures with PROC GLIMMIX

Statistical modeling of the number of electronic equipment failures using the GLIMMIX procedure with different optimi...

View code
Reporting
Extracting Graphic Elements from a SAS Visual Analytics Report

Script querying the SAS Viya REST API to list graphic objects contained in a specific report.

View code
Statistical
Statistical Analysis and Correlation Calculation on SASHELP.CARS

This SAS script performs a series of statistical analyses on the `sashelp.cars` dataset, including data description, ...

View code
Statistical
Descriptive Analysis of BMI and Graphical Visualization

This SAS script performs a descriptive analysis of the Body Mass Index (BMI) by creating an internal dataset, then ge...

View code
Général
Sans titre

This SAS script performs a survival analysis to compare two groups of gastric cancer patients (chemotherapy vs. chemo...

View code
Statistical
Variance analysis and regression on simulated cardiac data

Comparative statistical analysis using ANOVA (PROC GLM) and linear regression (PROC REG) on simulated biometric data.

View code
ETL
Demonstration: Concatenation of SAS Datasets

This SAS script demonstrates various methods of concatenating SAS datasets, including cases with identical and differ...

View code
Reporting
Descriptive Analysis and BMI Charts

This SAS script performs descriptive analysis by creating a Body Mass Index (BMI) dataset and generates two bar chart...

View code
Statistics
Simulation of Correlated Bernoulli Variables and Monte Carlo Analysis

Simulation script generating correlated Bernoulli variables within clusters to analyze the impact of intra-class corr...

View code
Reporting
Display class data filtered by gender

Generates a report listing students from the SASHELP.CLASS table, filtered by a gender macro variable.

View code
Configuration
Configuring ODS HTML Output by Procedure

Modifies the behavior of the ODS HTML destination to generate a new output file for each executed procedure.

View code
Statistics
Descriptive Analysis and Frequencies

This SAS script performs a simple descriptive analysis, creating a dataset from embedded data lines, then generates p...

View code
ETL
First SAS Program: Creating Datasets

Introductory script demonstrating the creation of simple SAS tables using the DATA step and the DATALINES statement.

View code
Statistical
Non-linear regression analysis with left-plateau model and visualization

This SAS script fits a 'left-plateau' type non-linear regression model to lizard mass and length data. It then visual...

View code
Utility
SAS Header Options Documentation

This comment block provides a standard description of commonly used SAS options for script headers, including configu...

View code
Configuration
Report Configuration and Style Macros

Configuration script initializing environment variables (paths), temporary variables, graphic styles, and utility mac...

View code
ETL
Cancer Data Analysis and Sorting

This SAS script creates an internal dataset 'work.cancer' from raw cancer data, calculates the total number of deaths...

View code
Data Manipulation
Demonstration of Adding SAS Data Sets

This SAS script demonstrates the use of the PROC APPEND procedure to add observations from one SAS data set to anothe...

View code
Statistical
Polynomial Regression Analysis on Cell Life Expectancy

Analysis of the life expectancy of energy cells based on charge rate and temperature using polynomial regression models.

View code
Général
Sans titre

Activation of the ODS graphics system for the SAS session.

View code
Statistical
Survival Analysis for Boron Neutron Capture Therapy

This SAS script performs a survival analysis to compare the survival curves of three groups (control, radiation, radi...

View code

Derniers codes ajoutés

Boost Performance & Security: Creating Composite Indexes and Passwords with PROC DATASETS
This example illustrates the modification of two SAS data sets using the MODIFY statement and its sub-statements. It shows how to: modify SAS files, label a SAS data set, add a read password to a SAS data set, indicate the current sort order of a SAS data set, create an index for a SAS data set, assign informats and formats to variables, rename variables, and label variables in a SAS data set.
ETL
SAS Data Step Efficiency: When to Use Explicit OUTPUT vs. Implicit Rules
Writes the current observation to a SAS dataset.
Data Manipulation CAS
Stop Struggling with Data Ingestion: Efficiently Move CSVs to Memory with PROC CASUTIL
The CASUTIL procedure offers several table and caslib management functions, including displaying table metadata, deleting files, unloading and loading tables, promoting tables, and saving tables.
ETL CAS
Beyond the WORK Library: Mastering the 4 Default SAS Libraries You Must Know
This document describes the default SAS libraries: Work (temporary), User (user), Sashelp, and Sasuser. It explains their role and behavior within the SAS Viya 4 environment.
Data Access
Seamless Integration: How to Attach Data Step Outputs Directly to SAS Viya Jobs
The SAS Viya Platform File Service allows storing, retrieving, and deleting files kept in the SAS Infrastructure Data Server database repository. This repository is not considered a complete 'file system' but contains individual files directly accessible by their file identifier (UUID).
Administration
From SAS 9 to Viya: The Ultimate Guide to Migrating User-Defined Formats to CAS
In the SAS Viya platform, you can store user-defined formats in catalogs for use in a SAS session, or you can store them in a format library on the CAS server. Format libraries are associated with a CAS session, or they can be promoted to global scope to be available to all CAS sessions. User-defined formats in a format library are server-side formats that the server uses when an analysis is performed based on formatted values. You can migrate existing user-defined formats from SAS to the SAS Viya platform.
Tools CAS
Instant Performance Boost: Creating Indexes on the Fly with the INDEX= Data Set Option
Defines one or more indexes for a new output SAS data set.
Général
Stop Bloating Your Datasets: The Definitive Guide to Variable Selection with KEEP
Specifies variables to include in output SAS data sets.
ETL CAS
Combine and Conquer: Mixing Physical Paths and Existing Librefs in One LIBNAME Statement
Explains the concept of SAS library concatenation, allowing several libraries to be logically grouped under a single reference (libref).
Data Access
Stop Importing, Start Connecting: A Master Class in SAS/ACCESS Engines and SQL Pass-Through
This document provides examples of using SAS engines to access and process various types of external data, including delimited files, Excel files, databases (DBMS), XML, and JSON.
Data Access