Description:
Correct skewness of a numeric sequence.
Syntax:
A.corskew() |
During modeling, correct skewness of numeric variable A, handle outliers, and return the result sequence of correction and a sequence of correction and handling process records Rec |
A.corskew@r(Rec) |
During scoring, correct skewness of numeric variable A according to correction process records Rec |
Note:
External library function (See External Library Guide).
No null values are allowed in the to-be-corrected data.
Parameter:
A |
A numeric sequence |
Rec |
A sequence of correction and handling process records |
Option:
@c |
Modify the original data to the corrected result after execution |
Return value:
Sequence
Example:
|
A |
|
1 |
[1,2,3,4,5,6,7,8,9,100] |
|
2 |
=A1.skew() |
The original skewness of A1. |
3 |
=A1.corskew() |
A3(1) Skewness correction result. A3(2) Correction process records Rec. |
4 |
=A1.corskew@rc(A3(2)) |
Correct skewness of A1’s sequence according to A3’s correction process records Rec, and change the original data to the correction result. |
5 |
=A1.skew() |
Corrected skewness of A1. |