你好,
我正在嘗試將數據放入組中並獲取斜率和 R 平方數。 我在這裡使用釣魚資料集作為範例。
我堆疊了數據,以便將摘要作為一列輕鬆輸出,然後我需要再次展開這些列。
所以我做了
fishing_stacked = dt << Stack(
columns(
:Fish Caught,
:Live Bait,
:Fishing Poles,
:Camper,
:People,
:Children,
:Fished
),
Source Label Column( "Label" ),
Stacked Data Column( "Data" )
);

我想按以下方式將資料分組驗證列和擬合(Y 軸 =魚咳嗽)和X軸是“活餌,釣竿,Camper ....」並取得坡度值和 R 平方數作為新列。
這是上一篇文章,但我不知道如何將其應用到我的資料集。
https://community.jmp.com/t5/Discussions/Save-Parameter-Estimates-of-Linear-Regression-with-by-Variable/td-p/13123