Correl - 指令碼函數
Correl() 會針對由 group by 子句所定義之若干記錄上反覆運算的配對數字 (以
Syntax:
Return data type: 數值
Arguments:
引數 | 描述 |
---|---|
|
含有兩個待測量相關係數之樣本集合的運算式或欄位。 |
Limitations:
若資料組中有任一資料是 (或兩個都是) 文字值、
Examples and results:
新增範例指令碼到您的文件中並加以執行。然後至少將結果資料行中所列的欄位新增至您文件中的工作表,以查看結果。
範例 | 結果 |
---|---|
Salary: Load *, 1 as Grp; LOAD * inline [ "Employee name"|Gender|Age|Salary Aiden Charles|Male|20|25000 Brenda Davies|Male|25|32000 Charlotte Edberg|Female|45|56000 Daroush Ferrara|Male|31|29000 Eunice Goldblum|Female|31|32000 Freddy Halvorsen|Male|25|26000 Gauri Indu|Female|36|46000 Harry Jones|Male|38|40000 Ian Underwood|Male|40|45000 Jackie Kingsley|Female|23|28000 ] (delimiter is '|'); Correl1: LOAD Grp, Correl(Age,Salary) as Correl_Salary Resident Salary Group By Grp;
|
Correl_Salary = 0.9270611 |