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.
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!
title 'Inbreeding within Nonoverlapping Generations';
proc inbreed ind covar matrix data=Monoecious;
class Generation;
run;
1
title 'Inbreeding within Nonoverlapping Generations';
2
PROC INBREED ind covar matrix DATA=Monoecious;
3
class Generation;
4
RUN;
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.
SAS and all other SAS Institute Inc. product or service names are registered trademarks or trademarks of SAS Institute Inc. in the USA and other countries. ® indicates USA registration. WeAreCAS is an independent community site and is not affiliated with SAS Institute Inc.
This site uses technical and analytical cookies to improve your experience.
Read more.