Declaration: ShapiroWilkIntegral (WStat: double; NDat, NCens: integer): double;
The function ShapiroWilkIntegral calculates the integral of the W-distribution between minus infinity and the value of the parameter WStat. The parameter NDat specifies the number of measured data, the parameter NCens specifies the number of censored data.

Hint 1: 1-ShapiroWilkIntegral is equal to the probability of WStat occuring under the assumption of a normal distribution of the data.

Hint 2: Please note that in the case of censored data either left censored or right censored data (but not both) are assumed.