OPTIONS LINESIZE=72;
TITLE1 'Nonparametric Sign & Wilcoxon Sign-Rank test for C.T.';
TITLE2 '** UNIVARIATE PROCEDURE **';
/* Name the data set, let's use Chemical Hydro- */
/* carbon or 'ChemHC' - the data set represent */
/* a relationship between the purity of oxygen */
/* produced in a chemical distillation process */
/* and the percentage of hydrocarbon that are */
/* presented in the main condenser of the */
/* distillation unit. */
/* Data set name could be anything you want, Max. */
/* 8 characters, and it is case-insensitive */
DATA ChemHC;
/* Define the order of data variables to be read */
/* in the data set -- 'Purity' first, then */
/* 'H_Carbon' and repeat till the data set exhaust */
/* @@ means a loop in reading input variable sequence */
INPUT Purity H_Carbon @@;
CARDS;
90.01 0.99 89.05 1.02 91.43 1.15
93.74 1.29 96.73 1.46 94.45 1.36
87.59 0.87 91.77 1.23 99.42 1.55
93.65 1.40 93.54 1.19 92.52 1.15
90.56 0.98 89.54 1.01 89.85 1.11
90.39 1.20 93.25 1.26 93.41 1.32
94.98 1.43 87.33 0.95
;
RUN;
PROC UNIVARIATE LOCCOUNT MU0 = 90;
/* LOCCOUNT = Request a table that shows number of */
/* observations greater than, equal to, */
/* and less than MU0= */
/* MU0 = Specify the value of the mean or location */
/* parameter. i.e., C.T. value that you */
/* testing in the T.H. In this case, you*/
/* testing whether C.T. (=median for */
/* nonparametric) is equal to 90 at 95%.*/
/* Designate a target variable for Descriptive */
/* Statistics - in this case, the target variable */
/* is Purity */
VAR Purity;
RUN;
|