Shapiro-Wilk W test ------------------- Author: Patrick Royston, Royal Postgraduate Medical School, London Support: FAX (011)-44-81-740 3119 or write. ^swilk^ varlist [^if^ exp] [^in^ range] [^, l^nnormal ^q^uiet] performs the Shapirio-Wilk W test and displays the number of observations, the Shapiro-Wilk value W, V, the normal test z, and its signficance. If the ^lnnormal^ option is specified, the data are tested under the assumption that they are of the form log(X-k), where k is a constant determined from the data. The data should be supplied already transformed to log(X-k). It the quiet option is specified, all output is suppressed. In addition to results being displayed, they are also stored in the macros ^%S_1^, ^%S_2^, etc. Stored are: ^%S_1^ number of observations ^%S_2^ W ^%S_3^ V ^%S_4^ Z ^%S_5^ P Example ------- . ^swilk lchol^ tests the variable ^lchol^ for normality. . ^swilk lchol, lnnormal^ tests the variable ^lchol^ for 3-parameter lognormality.