Published on :
Statistical CREATION_INTERNE

Example documentation for PROC CALIS

This code is also available in: Deutsch Español Français
Awaiting validation
The script begins by creating a dataset named 'sales' using the DATALINES statement to include raw data for variables q1, q2, q3, and q4. Then, it executes the PROC CALIS procedure on this dataset. The procedure is configured with the 'meanstr' option to estimate mean structures and 'nostand' to prevent variable standardization. The 'mstruct var=q1-q4;' statement specifies that the analysis should be performed on variables q1 to q4.
Data Analysis

Type : CREATION_INTERNE


The 'sales' dataset is entirely created within the script via a DATA step and raw data provided by the DATALINES statement.

1 Code Block
DATA STEP Data
Explanation :
This DATA step creates the 'sales' dataset by defining four input variables (q1, q2, q3, q4) and populating them with data specified directly in the script via the DATALINES statement. This is a method for integrating small datasets directly into the SAS program.
Copied!
1DATA sales;
2 INPUT q1 q2 q3 q4;
3 DATALINES;
41.03 1.54 1.11 2.22
51.23 1.43 1.65 2.12
63.24 2.21 2.31 5.15
71.23 2.35 2.21 7.17
8 .98 2.13 1.76 2.38
91.02 2.05 3.15 4.28
101.54 1.99 1.77 2.00
111.76 1.79 2.28 3.18
121.11 3.41 2.20 3.21
131.32 2.32 4.32 4.78
141.22 1.81 1.51 3.15
151.11 2.15 2.45 6.17
161.01 2.12 1.96 2.08
171.34 1.74 2.16 3.28
18;
2 Code Block
PROC CALIS
Explanation :
This PROC CALIS procedure is called to perform a mean and covariance structure analysis. The 'data=sales' option indicates that the 'sales' dataset should be used as input. 'meanstr' enables the estimation of mean structure parameters, while 'nostand' suppresses default variable standardization. The 'mstruct var=q1-q4;' statement specifies that the mean structure model should be applied to variables q1 to q4.
Copied!
1 
2PROC CALIS
3DATA=sales meanstr nostand;
4mstruct var=q1-q4;
5RUN;
6 
This material is provided "as is" by We Are Cas. There are no warranties, expressed or implied, as to merchantability or fitness for a particular purpose regarding the materials or code contained herein. We Are Cas is not responsible for errors in this material as it now exists or will exist, nor does We Are Cas provide technical support for it.
Copyright Info : S A S S A M P L E L I B R A R Y