The `heights` dataset is created directly within the SAS script via a `DATA` step using `datalines` for raw data input. It does not depend on any external data sources (files, databases) or default SAS libraries like SASHELP.
1 Code Block
DATA STEP Data
Explanation : This code block uses a `DATA` step to create a new SAS dataset named `heights`. The `INPUT` statement defines the variables `id`, `uniform`, `actual`, `tails`, `middle`, `lskew`, and `rskew`. Data for these variables is provided directly in the script using the `DATALINES` statement, meaning the data is embedded within the SAS program itself.
Explanation : This `PROC UNIVARIATE` procedure is used to generate descriptive statistics and graphs for the `lskew` variable from the `heights` dataset. The `PLOT` option requests the automatic production of a histogram, a box plot, and a Q-Q (quantile-quantile) plot, allowing for a visual assessment of the variable's distribution shape, symmetry, extreme values, and normality.
Copied!
proc univariate data = heights plot;
var lskew;
run;
1
2
PROC UNIVARIATE
3
DATA = heights plot;
4
var lskew;
5
RUN;
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 : This code is posted for your benefit; however, I highly recommend that you practice typing your own SAS programs as well. With the SAS programming language, as with all new languages, immersion seems to be the best way to learn.
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.