Statistics
Introduction Example for PROC HPMIXED

Data simulation and analysis via linear mixed model with significant fixed and random effects.

View code
Statistical Modeling
Documentation Example for PROC HPNLMOD

This SAS script illustrates the use of PROC HPNLMOD to fit a segmented nonlinear model with a continuity condition, a...

View code
Statistical
HPNLNGS1 - Startup example for PROC HPNLMOD

Example of using the HPNLMOD procedure to estimate parameters of a nonlinear regression model on enzymatic reaction d...

View code
Général
Sans titre

Macro converting a SAS HLS hexadecimal color code to decimal format.

View code
Général
Sans titre

Documentation example for PROC HPCANDISC using Fisher's (1936) Iris data and visualizing the results.

View code
Général
Sans titre

Canonical discriminant analysis of fish measurement data and visualization of results.

View code
Statistical
PROC HPFMM Getting Started Example: Binomial Mixture Distributions

Fitting finite mixture models to binomial data (yeast cells) with PROC HPFMM.

View code
Statistical
Non-Parametric Tweedie Regression with PROC GAMPL

Example of fitting a non-parametric Tweedie regression model on simulated data.

View code
Statistical
Example of PROC GAMPL usage for vote study

This script uses the GAMPL procedure to model the proportion of votes in US counties in 1980 based on various socio-e...

View code
Macro
Graphic Resizing Macro

SAS macro to resize graphic parameters (size and position) while maintaining the aspect ratio of the cells.

View code
Reporting
Panelization of ODS Graphics and Reports

This SAS script demonstrates the use of ODS TAGSETS.HTMLPANEL to organize individual and grouped graphics in an HTML ...

View code
Macro
Variable verification in a dataset

This function-type macro returns '1' if a dataset contains all variables specified in a user-provided list, and '0' o...

View code
Reporting
Generating Heatmaps with SGPLOT and SGPANEL

This SAS script generates heatmaps to visualize the relationship between weight and cholesterol from the SASHELP.HEAR...

View code
Test
Unit Test Skeleton

Script template containing commented assertion examples for writing unit tests.

View code
Macro
Search and Navigation Method for VIEWTABLE

This method, designed for use within a VIEWTABLE class (SAS/AF), intercepts commands to search for values in columns ...

View code
Reporting
Generating Graphs and Tables with ODS HTMLPANEL

Generates an HTML report containing individual and grouped graphs, as well as a table, using ODS HTMLPANEL to organiz...

View code
Statistical
Automobile Data Analysis and Visualization

This SAS script creates an internal dataset, performs a frequency analysis, and generates graphs to visualize the rel...

View code
Reporting
Simple graph with PROC GPLOT

This SAS script uses the GPLOT procedure to create a scatter plot of the 'weight' and 'height' variables from the SAS...

View code
Macro
Greenbar style macro for ODS

This macro implements a 'greenbar' effect (alternating colored rows) to improve the readability of reports generated ...

View code
Performance
SAS/CONNECT Parallel Execution Demonstration

Script demonstrating asynchronous execution of SAS tasks via SAS/CONNECT to reduce overall processing time.

View code
Statistical
Example 7 for PROC GLMSELECT

This SAS example simulates data and uses PROC GLMSELECT for model selection with the LASSO method, including differen...

View code
Statistical
Examples of details for PROC GLMPOWER

This SAS script demonstrates the use of the GLMPOWER procedure to perform power analysis, based on internal data. It ...

View code
Statistical
Example Documentation 3 for PROC GLMPOWER

Power analysis and sample size calculation for a repeated measures ANOVA.

View code
Statistical
Power calculation example for a two-way ANOVA

This SAS script illustrates how to use the GLMPOWER procedure to perform power and sample size analysis for a two-way...

View code
Statistical
Example 2 for PROC GLMPOWER - Power Analysis

Calculates statistical power for a General Linear Model (GLM) using PROC GLMPOWER. The example includes contrasts and...

View code
Statistical
PROC GLIMMIX Example 7

This SAS script uses PROC GLIMMIX to analyze the magnetic force of ferrite cores at different temperatures, applying ...

View code
Statistics
Introduction to PROC GLIMMIX Example: Logistic Regression

Example of logistic regression with random intercepts using the GLIMMIX procedure on multicenter data.

View code
Statistical
Mixed Model Analysis (GLM and MIXED)

This SAS script performs a mixed model analysis of variance using GLM and MIXED procedures on an internally generated...

View code
Statistical
Quadratic and Linear Regression with PROC GLM

This SAS script illustrates the use of PROC GLM for fitting quadratic and linear regression models, as well as genera...

View code
Statistical
Analysis of Nitrogen Content in Clover Plants

This SAS script analyzes the nitrogen content of red clover plants using Generalized Linear Models (GLMMOD) and regre...

View code
Statistical
Example 1 for PROC GLMMOD

This SAS script demonstrates the use of the GLMMOD procedure for generalized linear model analysis, by creating an in...

View code
Statistical
PROC GLMMOD and PROC REG for Forward Stepwise Selection

This SAS script uses PROC GLMMOD to generate a design matrix from an internal dataset, then PROC REG to perform forwa...

View code
Statistical
GLM Analysis for Unbalanced ANOVA

This script illustrates the use of PROC GLM for an unbalanced ANOVA with a 2x2 factorial design and the generation of...

View code
Macro
Verification of global macro variable existence

Function-style macro that returns 'true' (1) if all specified global macro variables exist in the SAS environment.

View code
Macro
List of Global Macro Variables

This function-style macro returns a list of the names of current SAS global macro variables.

View code
Statistical
PROC GLMSELECT Example with Model Selection

This SAS script demonstrates the use of the GLMSELECT procedure for generalized linear model selection with different...

View code
Statistical
Detailed Example 4 for PROC GLM

This script illustrates the use of the GLM (General Linear Model) procedure for the analysis of an unbalanced two-fac...

View code
Statistical
Detailed Example 5 for PROC GLM (Simple Effects)

This SAS script illustrates the use of PROC GLM for analyzing simple effects in a general linear model, using data cr...

View code
Général
Sans titre

This SAS script demonstrates the use of PROC GLM for analysis of variance with different sums of squares (Type I to I...

View code
Statistical
Analysis of Balanced Randomized Complete Block Data

This SAS script performs an analysis of variance (ANOVA) to study the effect of soil type and block on snapdragon ste...

View code
Général
Sans titre

This SAS script performs an unbalanced analysis of variance (ANOVA) for a two-factor experimental design with interac...

View code
Statistical
Example 4 for PROC GLM - Analysis of Covariance

This script performs a covariance analysis to evaluate the effect of a drug (Drug) on a treatment (PostTreatment) by ...

View code
Statistical
Three-factor ANOVA with PROC GLM (GLMEX5)

Example from the SAS sample library (GLMEX5) demonstrating a three-factor analysis of variance (ANOVA).

View code
Statistical
Example 7 for PROC GLM - Repeated Measures Analysis of Variance

Example of repeated measures analysis of variance on canine physiological data.

View code
Macro
Extracting and Managing ODS Styles

This SAS script extracts the list of available ODS styles, exports them to Excel, then re-imports them to generate in...

View code
Macro
GHI macro definition

Definition of a simple macro displaying a message in the log to verify autocall.

View code
Macro
Git Repository Installation and Loading Macros

Two macros to clone a Git/GitHub repository and automatically load the contained SAS macros.

View code
Macro
SAS Code Inclusion Macro from GitHub

This SAS macro allows the inclusion and execution of SAS code files stored in a specified GitHub repository, thereby ...

View code
Macro
Delete entries from a graphics catalog

The GKILL macro deletes entries from a graphics catalog. This is useful when PROC GREPLAY is used repeatedly in a sin...

View code
Statistical
Details for Example 3 for PROC GLM (Absorption in ANOVA)

Demonstration of using the ABSORB statement in PROC GLM for efficient statistical calculations, especially in the pre...

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