The script begins by defining a title for the output report: 'Examination of pig growth rate'. It then proceeds to create a dataset named 'Pigs' using a DATA step and the DATALINES clause. This dataset contains observations for the variables 'Group', 'Block', 'Treatment', and 'Weight'. Finally, the script executes the PROC LATTICE procedure on the 'Pigs' dataset, specifying the 'Weight' variable for analysis, which is typical for analyzing lattice experimental designs.
Data Analysis
Type : CREATION_INTERNE
The 'Pigs' dataset is created directly within the SAS script using a DATA step and the DATALINES clause, providing integrated raw data on pig growth.
1 Code Block
DATA STEP Data
Explanation : This DATA step creates a dataset named 'Pigs' and populates it with raw data provided via the DATALINES clause. The defined variables are 'Group', 'Block', 'Treatment', and 'Weight', representing experimental measurements for pigs.
Explanation : This procedure executes a lattice analysis on the 'Pigs' dataset. The 'var Weight;' statement specifies that the 'Weight' variable is the dependent variable to be analyzed within this experimental design.
Copied!
proc lattice data=Pigs;
var Weight;
run;
1
PROC LATTICEDATA=Pigs;
2
var Weight;
3
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.