我一開始確實嘗試過,但沒有成功。我將其更改為“無功能”,因為這是我的腳本的名稱。我更改了腳本以匹配 Weighted Kappa Function.jsl,但它仍然不起作用。我遇到了同樣的錯誤
加權 Kappa.jsl 透過閉合路徑包含自身:
加權 Kappa.jsl 存取或評估 'Include' ,
Include/*###*/("加權 Kappa 函數.jsl")
這是我使用該函數放置的程式碼:
Names Default to Here(1);
dt = open("Subset of Data for Kappa index.jmp");
Include("Weighted Kappa Function.jsl" );
CT = dt << Contingency(
Contingency Table(
Count( 1, Format( "Fixed Dec", 8, 0 ) ),
Total %( 1, Format( "Fixed Dec", 8, 2 ) ),
Col %( 1, Format( "Fixed Dec", 8, 2 ) ),
Row %( 1, Format( "Fixed Dec", 8, 2 ) ),
Expected( 1, Format( "Best", 8 ) ),
Deviation( 0, Format( "Best", 8 ) ),
Cell Chi Square( 0, Format( "Fixed Dec", 8, 4 ) ),
Col Cum( 0, Format( "Fixed Dec", 8, 0 ) ),
Col Cum %( 0, Format( "Fixed Dec", 8, 2 ) ),
Row Cum( 0, Format( "Fixed Dec", 8, 0 ) ),
Row Cum %( 0, Format( "Fixed Dec", 8, 2 ) )
),
Agreement Statistic( 1 )
);
WeightedKappa(CT);