Published on :
Statistical CREATION_INTERNE

Example Documentation for PROC INBREED

This code is also available in: Deutsch Español Français
Awaiting validation
The script begins with a DATA step that creates a dataset named 'Monoecious'. The data is directly integrated into the script via the DATALINES statement, defining the variables 'Generation', 'Individual', 'Parent1', 'Parent2', and 'Covariance'. The reference ` @code_sas©_json/hsdua2304@gmail.com_SAS©_Assignment_1.json` in the INPUT statement is syntactically incorrect for SAS© in this context and would be an error if the code were executed as is. The purpose of this step is to prepare genealogical data for analysis. Next, the PROC INBREED procedure is called with the 'IND', 'COVAR', and 'MATRIX' options to calculate inbreeding coefficients and covariance matrices. The CLASS 'Generation' statement is used to group analyses by generation, which allows the procedure to process relationships within each specified generation group. This script is typical for genetic statistical analyses.
Data Analysis

Type : CREATION_INTERNE


The data used by the script is created directly within the DATA step 'Monoecious' using the 'datalines' statement. No valid external data source is used to populate the main dataset.

1 Code Block
DATA STEP Data
Explanation :
This DATA STEP block is responsible for creating the 'Monoecious' dataset. Variables 'Generation', 'Individual', 'Parent1', 'Parent2', and 'Covariance' are defined via the INPUT statement. The data is then provided inline using the DATALINES block. It is important to note that the part ` @code_sas_json/hsdua2304@gmail.com_SAS_Assignment_1.json` after 'Covariance' in the INPUT statement is a syntactic anomaly and does not correspond to a standard SAS feature for including JSON files as data or metadata in a DATA STEP in this manner. In a SAS execution, this would cause an error or incorrect data interpretation.
Copied!
1DATA Monoecious;
2 INPUT Generation Individual Parent1 Parent2 Covariance @code_sas_json/hsdua2304@gmail.com_SAS_Assignment_1.json;
3 DATALINES;
41 1 . . . 1 2 . . . 1 3 . . .
52 1 1 1 . 2 2 1 2 . 2 3 2 3 .
63 1 1 2 . 3 2 1 3 . 3 3 2 1 .
73 4 1 3 . 3 . 2 3 0.50 3 . 4 3 1.135
8;
2 Code Block
PROC INBREED
Explanation :
This block uses PROC INBREED to perform statistical analysis on the 'Monoecious' dataset. The 'IND' option requests the calculation of inbreeding coefficients. The 'COVAR MATRIX' options produce covariance matrices of inbreeding coefficients. The 'CLASS Generation;' statement indicates that calculations should be performed considering the 'Generation' variable, which is essential for pedigree data structured by generations. The title 'Inbreeding within Nonoverlapping Generations' is defined for the outputs generated by this procedure.
Copied!
1title 'Inbreeding within Nonoverlapping Generations';
2PROC INBREED ind covar matrix DATA=Monoecious;
3 class Generation;
4RUN;
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 : SAS SAMPLE LIBRARY