<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />各位,
您能給我展示一個有關如何在圖形產生器中使用頻率區域的範例嗎?
先感謝您。
坤
我編寫了一個小腳本,使用圖形產生器的頻率下降區域來比較範例結構的資料表,與將資料擴展為實際觀察結果,然後根據擴展的資料進行圖形產生器。

Names Default To Here( 1 );<BR />
/*dt = New Table( "Example",
Add Rows( 16 ),
New Column( "#non conformities",
Numeric,
"Continuous",
Format( "Best", 12 ),
Set Values( [1, 1, 1, 4, 1, 2, 1, 1, 1, 1, 1, 1, 2, 1, 2, 2] )
),
New Column( "X",
Numeric,
"Nominal",
Format( "Best", 12 ),
Set Values( [2, 4, 3, 5, 5, 4, 2, 1, 2, 3, 3, 1, 4, 2, 4, 1] )
),
New Column( "Y",
Numeric,
"Continuous",
Format( "Best", 12 ),
Set Values(
[87.6761003304139, 69.8609169241848, 87.4616511288794, 70.3768356100406, 70.8645383423261,
85.4167498650613, 85.0039197906326, 83.0781777845281, 81.445262575383, 77.6469864353613,
73.528707708996, 91.6793408130229, 82.0904076861622, 74.5541146955842, 95.3095947684666,
80.9917511770325]
)
)
);*/
dt = current data table();
dt << Add Multiple Columns( "Y", Col Max( :name( "#non conformities" ) ) - 1, numeric, after last );
For Each Row( For( i = 2, i <= :Name( "#non conformities" ), i++, Column( 2 + i )[Row()] = :Y[Row()] ) );
theList = {"Y"};
For( i = 1, i <= Col Max( :name( "#non conformities" ) ) - 1, i++,
Insert Into( theList, "Y " || Char( i ) )
);
dtStack = dt << Stack( columns( theList ), Source Label Column( "Label" ), Stacked Data Column( "Data" ) );
dtStack << select where( Is Missing( :Data ) == 1 );
dtStack << delete rows;
New Window( "Comparison",
H List Box(
dt << Graph Builder(
Size( 528, 450 ),
Show Control Panel( 0 ),
Variables( X( :X ), Y( :Y ), Frequency( :Name( "#non conformities" ) ) ),
Elements( Box Plot( X, Y, Legend( 6 ) ) ),
SendToReport( Dispatch( {}, "graph title", TextEditBox, {Set Text( "Using Freq" )} ) )
),
dtStack << Graph Builder(
Size( 528, 450 ),
Show Control Panel( 0 ),
Variables( X( :X ), Y( :Data ) ),
Elements( Box Plot( X, Y, Legend( 6 ) ) ),
SendToReport( Dispatch( {}, "graph title", TextEditBox, {Set Text( "Stacked" )} ) )
)
)
);
如果您針對您的資料執行此腳本,您應該獲得與使用您的資料建立的 Freq 版本形式相同的圖表。
@XanGregg ,您能否詳細說明 JMP 如何決定使用哪個數字作為乘數?
為了更好地解釋這種情況,我創建了這個例子:
數據表

此圖僅包含 Y 乘 X,且沒有頻率。

圖表將“#nonconformities”放入頻率中。

JMP 使用什麼作為乘法器?
如果需要,#nonconformities 欄位具有以下分佈。

期待閱讀您的回复,一旦我必須在我擔任講師的課程中進行解釋。
先致謝
無論您放在那裡的什麼變數都會充當響應變數的權重/頻率變數。 基本上是乘數。