幫助完成這個簡單的透過 x 擬合 y 的腳本你好。 我嘗試研究一個定量變數與多個定量變數的關係。 我寫了這個腳本,但它不起作用。 我向您展示腳本和錯誤訊息。 先感謝您。
腳本
名稱預設為此處( 1 );
dt = 當前資料表();
numericColNames = dt << 取得列名稱(字串,數字);
For( i = 38, i <= N Items( numericColNames ), i++,
雙變數(
Y( :名稱( "ERC [%]" ) ),
X( (__col__) ),
擬合線( {報告( 0 ), 線條顏色( {212, 73, 88} ), 報告( 0 )} )
);
);
錯誤
名稱預設為此處( 1 );
dt = 當前資料表();
numericColNames = dt << 取得列名稱(字串,數字);
For( i = 38, i <= N Items( numericColNames ), i++,
雙變數(
Y( :名稱( "ERC [%]" ) ),
X( (__col__) ),
擬合線( {報告( 0 ), 線條顏色( {212, 73, 88} ), 報告( 0 )} )
);
);
數據探索和視覺化回覆:幫助完成這個用 x 擬合 y 的簡單腳本我認為您不記得添加錯誤訊息。 另外,在發布腳本時,您應該使用
因為它使可讀性更好(我確實編輯了您的訊息以使用它)。
回覆:幫助這個簡單的 y by x 腳本只需查看您的腳本,除了複製雙變量 IF 您在某處正確定義了 __col__ 之外,您似乎沒有使用循環執行任何操作( i 沒有被使用)。 如果你改變也許就夠了
X((__col__))
到
X(Eval(numericColNames[i])),
回覆:幫助完成這個用 x 擬合 y 的簡單腳本Names Default To Here( 1 );
dt = Current Data Table();
numericColNames = dt << get column names( string, numeric );
For( i = 38, i <= N Items( numericColNames ), i++,
Bivariate(
Y( :Name( "ERC [%]" ) ),
X( (__col__) ),
Fit Line( {Report( 0 ), Line Color( {212, 73, 88} ), Report( 0 )} )
);
);
Not Found in access or evaluation of 'Bivariate' , Bad Argument( {__col__, Role requires at least 1 columns.} ), Bivariate(/*###*/Y( :Name( "ERC [%]" ) ),
X( __col__ ),
Fit Line( {Report( 0 ), Line Color( {212, 73, 88} ), Report( 0 )} )
)
回覆:幫助完成這個用 x 擬合 y 的簡單腳本對不起。
回覆:幫助完成這個用 x 擬合 y 的簡單腳本好吧,我認為問題是我在第二個回覆中所解釋的。 如果你想讓它更明顯一點,你可以定義 __xcol__
Names Default To Here(1);
dt = Current Data Table();
numericColNames = dt << get column names(string, numeric);
For(i = 38, i <= N Items(numericColNames), i++,
__col__ = numericColNames[i];
Bivariate(
Y(:Name("ERC [%]")),
X(Eval(__col__)),
Fit Line({Report(0), Line Color({212, 73, 88}), Report(0)})
);
);
此外,如果您使用 JMP16+,則使用 For Each 通常比僅使用 For 更好
回覆:幫助完成這個用 x 擬合 y 的簡單腳本從 9 點到 14 點真是太棒了。 有了14個我就非常高興了。 太感謝了