2438_zh-TW
自定義分位數嗨,JMPers,
有沒有辦法改變直方圖報告中的分位數?
謝謝,回复:自定義分位數你想做這樣的事情嗎?
style="font-size: 10pt; font-family: "Courier New"; 顏色: black;">dt
style="font-size: 10pt; font-family: "Courier New"; 顏色: 海軍藍;">=
style="font-size: 10pt; font-family: "Courier New"; 顏色: black;">
style="font-size: 10pt; font-family: "Courier New"; 顏色: rgb(0, 0, 221);">打開
style="font-size: 10pt; font-family: "Courier New"; 顏色: 黑色;">(
style="font-size: 10pt; font-family: "Courier New"; 顏色: black;">
style="font-size: 10pt; font-family: "Courier New"; 顏色: 紫色;">"$SAMPLE_DATA/fitness.jmp"
style="font-size: 10pt; font-family: "Courier New"; 顏色: black;">
)
style="font-size: 10pt; font-family: "Courier New"; 顏色: 海軍藍;">;
style="font-size: 10pt; font-family: "Courier New"; 顏色: black;">
style="font-size: 10pt; font-family: "Courier New"; 顏色: black;">
style="font-size: 10pt; font-family: "Courier New"; 顏色: black;">nw
style="font-size: 10pt; font-family: "Courier New"; 顏色: 海軍藍;">=
style="font-size: 10pt; font-family: "Courier New"; 顏色: black;">
style="font-size: 10pt; font-family: "Courier New"; 顏色: rgb(0, 0, 221);">新
窗戶
style="font-size: 10pt; font-family: "Courier New"; 顏色: 黑色;">(
style="font-size: 10pt; font-family: "Courier New"; 顏色: black;">
(
style="font-size: 10pt; font-family: "Courier New"; 顏色: Purple;">"總結"
style="font-size: 10pt; font-family: "Courier New"; 顏色: black;">)
style="font-size: 10pt; font-family: "Courier New"; 顏色: 海軍藍;">,
style="font-size: 10pt; font-family: "Courier New"; 顏色: black;">
style="font-size: 10pt; font-family: "Courier New"; 顏色: black;">
風格="">
距離
style="font-size: 10pt; font-family: "Courier New"; 顏色: 海軍藍;">=
style="font-size: 10pt; font-family: "Courier New"; 顏色: black;">
dt
style="font-size: 10pt; font-family: "Courier New"; 顏色: 海軍藍;"><<
style="font-size: 10pt; font-family: "Courier New"; 顏色: black;">
分配(
style="font-size: 10pt; font-family: "Courier New"; 顏色: black;">
風格="">
堆(
style="font-size: 10pt; font-family: "Courier New"; 顏色: 青色;">1
style="font-size: 10pt; font-family: "Courier New"; 顏色: black;">
)
style="font-size: 10pt; font-family: "Courier New"; 顏色: 海軍藍;">,
style="font-size: 10pt; font-family: "Courier New"; 顏色: black;">
style="font-size: 10pt; font-family: "Courier New"; 顏色: black;">
風格="">
頻率(
style="font-size: 10pt; font-family: "Courier New"; 顏色: 海軍藍;">:
style="font-size: 10pt; font-family: "Courier New"; 顏色: black;">重量
)
style="font-size: 10pt; font-family: "Courier New"; 顏色: 海軍藍;">,
style="font-size: 10pt; font-family: "Courier New"; 顏色: black;">
style="font-size: 10pt; font-family: "Courier New"; 顏色: black;">
風格="">
連續的
分配(
style="font-size: 10pt; font-family: "Courier New"; 顏色: black;">
風格="">
style="font-size: 10pt; font-family: "Courier New"; color: rgb(0, 0, 221);">列
style="font-size: 10pt; font-family: "Courier New"; 顏色: 黑色;">(
style="font-size: 10pt; font-family: "Courier New"; 顏色: black;">
style="font-size: 10pt; font-family: "Courier New"; 顏色: 海軍藍;">:
style="font-size: 10pt; font-family: "Courier New"; 顏色: black;">Oxy
)
style="font-size: 10pt; font-family: "Courier New"; 顏色: 海軍藍;">,
style="font-size: 10pt; font-family: "Courier New"; 顏色: black;">
style="font-size: 10pt; font-family: "Courier New"; 顏色: black;">
風格="">
分位數(
style="font-size: 10pt; font-family: "Courier New"; 顏色: 青色;">1
style="font-size: 10pt; font-family: "Courier New"; 顏色: black;">
)
style="font-size: 10pt; font-family: "Courier New"; 顏色: 海軍藍;">,
style="font-size: 10pt; font-family: "Courier New"; 顏色: black;">
style="font-size: 10pt; font-family: "Courier New"; 顏色: black;">
風格="">
時刻(
style="font-size: 10pt; font-family: "Courier New"; 顏色: 青色;">0
style="font-size: 10pt; font-family: "Courier New"; 顏色: black;">
)
style="font-size: 10pt; font-family: "Courier New"; 顏色: 海軍藍;">,
style="font-size: 10pt; font-family: "Courier New"; 顏色: black;">
style="font-size: 10pt; font-family: "Courier New"; 顏色: black;">
風格="">
離群值
箱形圖(
style="font-size: 10pt; font-family: "Courier New"; 顏色: 青色;">0
style="font-size: 10pt; font-family: "Courier New"; 顏色: black;">
)
style="font-size: 10pt; font-family: "Courier New"; 顏色: 海軍藍;">,
style="font-size: 10pt; font-family: "Courier New"; 顏色: black;">
style="font-size: 10pt; font-family: "Courier New"; 顏色: black;">
風格="">
數數
軸(
style="font-size: 10pt; font-family: "Courier New"; 顏色: 青色;">1
style="font-size: 10pt; font-family: "Courier New"; 顏色: black;">
)
style="font-size: 10pt; font-family: "Courier New"; 顏色: 海軍藍;">,
style="font-size: 10pt; font-family: "Courier New"; 顏色: black;">
style="font-size: 10pt; font-family: "Courier New"; 顏色: black;">
風格="">
節目
百分比(
style="font-size: 10pt; font-family: "Courier New"; 顏色: 青色;">1
style="font-size: 10pt; font-family: "Courier New"; 顏色: black;">
)
style="font-size: 10pt; font-family: "Courier New"; 顏色: 海軍藍;">,
style="font-size: 10pt; font-family: "Courier New"; 顏色: black;">
style="font-size: 10pt; font-family: "Courier New"; 顏色: black;">
風格="">
節目
計數(
style="font-size: 10pt; font-family: "Courier New"; 顏色: 青色;">1
style="font-size: 10pt; font-family: "Courier New"; 顏色: black;">
)
style="font-size: 10pt; font-family: "Courier New"; 顏色: 海軍藍;">,
style="font-size: 10pt; font-family: "Courier New"; 顏色: black;">
風格="">
style="font-size: 10pt; font-family: "Courier New"; 顏色: black;">
style="font-size: 10pt; font-family: "Courier New"; 顏色: black;">
style="font-size: 10pt; font-family: "Courier New"; 顏色: black;">
風格="">
)
style="font-size: 10pt; font-family: "Courier New"; 顏色: 海軍藍;">,
style="font-size: 10pt; font-family: "Courier New"; 顏色: black;">
style="font-size: 10pt; font-family: "Courier New"; 顏色: black;">
風格="">
經過(
style="font-size: 10pt; font-family: "Courier New"; 顏色: 海軍藍;">:
style="font-size: 10pt; font-family: "Courier New"; 顏色: black;">性別
)
style="font-size: 10pt; font-family: "Courier New"; 顏色: black;">
風格="">
)
style="font-size: 10pt; font-family: "Courier New"; 顏色: 海軍藍;">;
style="font-size: 10pt; font-family: "Courier New"; 顏色: black;">
style="font-size: 10pt; font-family: "Courier New"; 顏色: black;">
風格="">
rdist
style="font-size: 10pt; font-family: "Courier New"; 顏色: 海軍藍;">=
style="font-size: 10pt; font-family: "Courier New"; 顏色: black;">
距離
style="font-size: 10pt; font-family: "Courier New"; 顏色: 海軍藍;"><<
style="font-size: 10pt; font-family: "Courier New"; 顏色: black;">
style="font-size: 10pt; font-family: "Courier New"; color: rgb(0, 0, 221);">報告
style="font-size: 10pt; font-family: "Courier New"; 顏色: black;">()
style="font-size: 10pt; font-family: "Courier New"; 顏色: 海軍藍;">;
style="font-size: 10pt; font-family: "Courier New"; 顏色: black;">
style="font-size: 10pt; font-family: "Courier New"; 顏色: black;">
風格="">
style="font-size: 10pt; font-family: "Courier New"; 顏色: black;">
風格="">
style="font-size: 10pt; font-family: "Courier New"; color: rgb(0, 0, 221);">總結
style="font-size: 10pt; font-family: "Courier New"; 顏色: 黑色;">(
style="font-size: 10pt; font-family: "Courier New"; 顏色: black;">
團體
style="font-size: 10pt; font-family: "Courier New"; 顏色: 海軍藍;">=
style="font-size: 10pt; font-family: "Courier New"; 顏色: black;">
經過(
style="font-size: 10pt; font-family: "Courier New"; 顏色: 海軍藍;">:
style="font-size: 10pt; font-family: "Courier New"; 顏色: black;">性別
)
style="font-size: 10pt; font-family: "Courier New"; 顏色: 海軍藍;">,
style="font-size: 10pt; font-family: "Courier New"; 顏色: black;">
參考線
style="font-size: 10pt; font-family: "Courier New"; 顏色: 海軍藍;">=
style="font-size: 10pt; font-family: "Courier New"; 顏色: black;">
style="font-size: 10pt; font-family: "Courier New"; color: rgb(0, 0, 221);">平均值
style="font-size: 10pt; font-family: "Courier New"; 顏色: 黑色;">(
style="font-size: 10pt; font-family: "Courier New"; 顏色: black;">
style="font-size: 10pt; font-family: "Courier New"; 顏色: 海軍藍;">:
style="font-size: 10pt; font-family: "Courier New"; 顏色: black;">Oxy
)
style="font-size: 10pt; font-family: "Courier New"; 顏色: 海軍藍;">,
style="font-size: 10pt; font-family: "Courier New"; 顏色: black;">
P95
style="font-size: 10pt; font-family: "Courier New"; 顏色: 海軍藍;">=
style="font-size: 10pt; font-family: "Courier New"; 顏色: black;">
style="font-size: 10pt; font-family: "Courier New"; color: rgb(0, 0, 221);">分位數
style="font-size: 10pt; font-family: "Courier New"; 顏色: 黑色;">(
style="font-size: 10pt; font-family: "Courier New"; 顏色: black;">
style="font-size: 10pt; font-family: "Courier New"; 顏色: 海軍藍;">:
style="font-size: 10pt; font-family: "Courier New"; 顏色: black;">Oxy
style="font-size: 10pt; font-family: "Courier New"; 顏色: 海軍藍;">,
style="font-size: 10pt; font-family: "Courier New"; 顏色: black;">
style="font-size: 10pt; font-family: "Courier New"; 顏色:teal;">0.95
style="font-size: 10pt; font-family: "Courier New"; 顏色: black;">
)
)
style="font-size: 10pt; font-family: "Courier New"; 顏色: 海軍藍;">;
style="font-size: 10pt; font-family: "Courier New"; 顏色: black;">
style="font-size: 10pt; font-family: "Courier New"; 顏色: black;">
風格="">
style="font-size: 10pt; font-family: "Courier New"; 顏色: black;">
風格="">
n
style="font-size: 10pt; font-family: "Courier New"; 顏色: 海軍藍;">=
style="font-size: 10pt; font-family: "Courier New"; 顏色: black;">
style="font-size: 10pt; font-family: "Courier New"; 顏色: rgb(0, 0, 221);">N
項目
style="font-size: 10pt; font-family: "Courier New"; 顏色: 黑色;">(
style="font-size: 10pt; font-family: "Courier New"; 顏色: black;">
團體)
style="font-size: 10pt; font-family: "Courier New"; 顏色: 海軍藍;">;
style="font-size: 10pt; font-family: "Courier New"; 顏色: black;">
style="font-size: 10pt; font-family: "Courier New"; 顏色: black;">
風格="">
style="font-size: 10pt; font-family: "Courier New"; 顏色: rgb(0, 0, 221);">For
style="font-size: 10pt; font-family: "Courier New"; 顏色: 黑色;">(
style="font-size: 10pt; font-family: "Courier New"; 顏色: black;">
style="font-size: 10pt; font-family: "Courier New"; 顏色: rgb(0, 0, 221);">j
style="font-size: 10pt; font-family: "Courier New"; 顏色: black;">
style="font-size: 10pt; font-family: "Courier New"; 顏色: 海軍藍;">=
style="font-size: 10pt; font-family: "Courier New"; 顏色: black;">
style="font-size: 10pt; font-family: "Courier New"; 顏色: 青色;">1
style="font-size: 10pt; font-family: "Courier New"; 顏色: 海軍藍;">,
style="font-size: 10pt; font-family: "Courier New"; 顏色: black;">
style="font-size: 10pt; font-family: "Courier New"; 顏色: rgb(0, 0, 221);">j
style="font-size: 10pt; font-family: "Courier New"; 顏色: black;">
style="font-size: 10pt; font-family: "Courier New"; 顏色: 海軍藍;"><=
style="font-size: 10pt; font-family: "Courier New"; 顏色: black;">
n
style="font-size: 10pt; font-family: "Courier New"; 顏色: 海軍藍;">,
style="font-size: 10pt; font-family: "Courier New"; 顏色: black;">
style="font-size: 10pt; font-family: "Courier New"; 顏色: rgb(0, 0, 221);">j
style="font-size: 10pt; font-family: "Courier New"; 顏色: 海軍藍;">++,
style="font-size: 10pt; font-family: "Courier New"; 顏色: black;">
style="font-size: 10pt; font-family: "Courier New"; 顏色: black;">
風格="">
rdist [
style="font-size: 10pt; font-family: "Courier New"; 顏色: rgb(0, 0, 221);">j
style="font-size: 10pt; font-family: "Courier New"; 顏色: black;">][
style="font-size: 10pt; font-family: "Courier New"; 顏色: Purple;">"分位數"
style="font-size: 10pt; font-family: "Courier New"; 顏色: black;">]
style="font-size: 10pt; font-family: "Courier New"; 顏色: black;">
style="font-size: 10pt; font-family: "Courier New"; 顏色: 海軍藍;"><<
style="font-size: 10pt; font-family: "Courier New"; 顏色: black;">
刪除
style="font-size: 10pt; font-family: "Courier New"; 顏色: 海軍藍;">;
style="font-size: 10pt; font-family: "Courier New"; 顏色: black;">
style="font-size: 10pt; font-family: "Courier New"; 顏色: black;">
風格="">
( rdist [
style="font-size: 10pt; font-family: "Courier New"; 顏色: rgb(0, 0, 221);">j
style="font-size: 10pt; font-family: "Courier New"; 顏色: black;">][
style="font-size: 10pt; font-family: "Courier New"; 顏色: Purple;">"Oxy"
style="font-size: 10pt; font-family: "Courier New"; 顏色: black;">])
style="font-size: 10pt; font-family: "Courier New"; 顏色: black;">
style="font-size: 10pt; font-family: "Courier New"; 顏色: 海軍藍;"><<
style="font-size: 10pt; font-family: "Courier New"; 顏色: black;">
附加(
style="font-size: 10pt; font-family: "Courier New"; 顏色: black;">
風格="">
style="font-size: 10pt; font-family: "Courier New"; 顏色: rgb(0, 0, 221);">輪廓
盒子
style="font-size: 10pt; font-family: "Courier New"; 顏色: 黑色;">(
style="font-size: 10pt; font-family: "Courier New"; 顏色: black;">
style="font-size: 10pt; font-family: "Courier New"; 顏色: Purple;">"分位數"
style="font-size: 10pt; font-family: "Courier New"; 顏色: 海軍藍;">,
style="font-size: 10pt; font-family: "Courier New"; 顏色: black;">
style="font-size: 10pt; font-family: "Courier New"; 顏色: black;">
風格="">
style="font-size: 10pt; font-family: "Courier New"; 顏色: rgb(0, 0, 221);">表格
盒子
style="font-size: 10pt; font-family: "Courier New"; 顏色: 黑色;">(
style="font-size: 10pt; font-family: "Courier New"; 顏色: black;">
style="font-size: 10pt; font-family: "Courier New"; 顏色: rgb(0, 0, 221);">字符串
彩色盒
style="font-size: 10pt; font-family: "Courier New"; 顏色: 黑色;">(
style="font-size: 10pt; font-family: "Courier New"; 顏色: black;">
style="font-size: 10pt; font-family: "Courier New"; 顏色: 紫色;">""
style="font-size: 10pt; font-family: "Courier New"; 顏色: 海軍藍;">,
style="font-size: 10pt; font-family: "Courier New"; 顏色: black;">
{
style="font-size: 10pt; font-family: "Courier New"; 顏色: 紫色;">"95.0%"
style="font-size: 10pt; font-family: "Courier New"; 顏色: black;">}
style="font-size: 10pt; font-family: "Courier New"; 顏色: black;">
)
style="font-size: 10pt; font-family: "Courier New"; 顏色: 海軍藍;">,
style="font-size: 10pt; font-family: "Courier New"; 顏色: black;">
style="font-size: 10pt; font-family: "Courier New"; 顏色: rgb(0, 0, 221);">數字
彩色盒
style="font-size: 10pt; font-family: "Courier New"; 顏色: 黑色;">(
style="font-size: 10pt; font-family: "Courier New"; 顏色: black;">
style="font-size: 10pt; font-family: "Courier New"; 顏色: 紫色;">""
style="font-size: 10pt; font-family: "Courier New"; 顏色: 海軍藍;">,
style="font-size: 10pt; font-family: "Courier New"; 顏色: black;">
{ P95 [
style="font-size: 10pt; font-family: "Courier New"; 顏色: rgb(0, 0, 221);">j
style="font-size: 10pt; font-family: "Courier New"; 顏色: black;">]}
style="font-size: 10pt; font-family: "Courier New"; 顏色: black;">
)
)
style="font-size: 10pt; font-family: "Courier New"; 顏色: black;">
風格="">
)
style="font-size: 10pt; font-family: "Courier New"; 顏色: black;">
風格="">
)
style="font-size: 10pt; font-family: "Courier New"; 顏色: 海軍藍;">;
style="font-size: 10pt; font-family: "Courier New"; 顏色: black;">
style="font-size: 10pt; font-family: "Courier New"; 顏色: black;">
風格="">
rdist [
style="font-size: 10pt; font-family: "Courier New"; 顏色: rgb(0, 0, 221);">j
style="font-size: 10pt; font-family: "Courier New"; 顏色: black;">][
style="font-size: 10pt; font-family: "Courier New"; 顏色: 青色;">1
style="font-size: 10pt; font-family: "Courier New"; 顏色: black;">][
style="font-size: 10pt; font-family: "Courier New"; 顏色: 青色;">1
style="font-size: 10pt; font-family: "Courier New"; 顏色: black;">][
style="font-size: 10pt; font-family: "Courier New"; 顏色: 青色;">1
style="font-size: 10pt; font-family: "Courier New"; 顏色: black;">][
style="font-size: 10pt; font-family: "Courier New"; 顏色: 青色;">1
style="font-size: 10pt; font-family: "Courier New"; 顏色: black;">][
style="font-size: 10pt; font-family: "Courier New"; 顏色: 青色;">1
style="font-size: 10pt; font-family: "Courier New"; 顏色: black;">][
style="font-size: 10pt; font-family: "Courier New"; 顏色: 青色;">1
style="font-size: 10pt; font-family: "Courier New"; 顏色: black;">][
style="font-size: 10pt; font-family: "Courier New"; 顏色: 青色;">1
style="font-size: 10pt; font-family: "Courier New"; 顏色: black;">][
style="font-size: 10pt; font-family: "Courier New"; 顏色: 青色;">1
style="font-size: 10pt; font-family: "Courier New"; 顏色: black;">]
style="font-size: 10pt; font-family: "Courier New"; 顏色: black;">
style="font-size: 10pt; font-family: "Courier New"; 顏色: 海軍藍;"><<
style="font-size: 10pt; font-family: "Courier New"; 顏色: black;">
添加參考線(
參考線[
style="font-size: 10pt; font-family: "Courier New"; 顏色: rgb(0, 0, 221);">j
style="font-size: 10pt; font-family: "Courier New"; 顏色: black;">]
style="font-size: 10pt; font-family: "Courier New"; 顏色: 海軍藍;">,
style="font-size: 10pt; font-family: "Courier New"; 顏色: black;">
堅硬的
style="font-size: 10pt; font-family: "Courier New"; 顏色: 海軍藍;">,
style="font-size: 10pt; font-family: "Courier New"; 顏色: black;">
style="font-size: 10pt; font-family: "Courier New"; 顏色: 紫色;">"紅色"
style="font-size: 10pt; font-family: "Courier New"; 顏色: black;">
)
style="font-size: 10pt; font-family: "Courier New"; 顏色: 海軍藍;">;
style="font-size: 10pt; font-family: "Courier New"; 顏色: black;">
style="font-size: 10pt; font-family: "Courier New"; 顏色: black;">
風格="">
)
style="font-size: 10pt; font-family: "Courier New"; 顏色: 海軍藍;">;
style="font-size: 10pt; font-family: "Courier New"; 顏色: black;">
style="font-size: 10pt; font-family: "Courier New"; 顏色: black;">)
style="font-size: 10pt; font-family: "Courier New"; 顏色: 海軍藍;">;回复:自定義分位數不太確定您要做什麼。 然而,聲明“P95 = Quantile(:Oxy,0.95);”
應該
P95 = Col Quantile(:Oxy, 0.95);
在語法上是正確的。回复:自定義分位數你好,
這是我的腳本,請檢查如何獲得 P95。
非常感謝您的時間和精力。
===========================================
dt = 打開 ("$SAMPLE_DATA/fitness.jmp");
nw = 新窗口((“摘要”),
Biv = dt << 分佈(堆棧(1),
頻率(:重量),
連續分佈(
列(:氧),
分位數 (1),
時刻 (0),
異常值箱線圖 (0),
計數軸(1),
顯示百分比(1),
顯示計數(1),
), By( :Sex ));
rbiv = Biv << 報告();
總結(groups = by(:Sex), reflines = Mean(:Oxy));
n = N 項(組);
對於( j = 1, j <= n, j++,
rbiv[1][1][1][1][1][1][1][1] <<
添加參考線(參考線, 實心, "紅色" ));
rdist = 報告(Biv);
rdist["分位數"]<
P95 = 分位數(:氧,0.95);
(rdist [“氧”])<大綱框(“分位數”,
表格框 (String Col Box ("",{"95.0%",}),
編號列框 ("",P95)
))));回复:自定義分位數當我嘗試它時,Summary 似乎並沒有尊重具有分位數頻率角色的列,儘管它確實適用於手段。 也許我應該說,我在存在另一個具有頻率角色的列的列上使用 summary 得到的結果與我在擴展表上使用 summary 得到的結果不同。 JMP 中的各種分位數函數可能並非都使用相同的算法來處理平局。 如果時間允許,我將使用摘要重新檢查,因為這樣會更好。
好的,這就是我嘗試過的。 我打開了健身數據並運行了年齡摘要,它給了我一個年齡和他們的頻率表(我重命名為頻率的 N 行)。 我給了 Freq 頻率角色。 我在原始表中運行了年齡摘要,然後在摘要表中再次運行。 我選擇了幾個分位數。 我發現第 25 和第 75 分位數不一致,儘管均值一致。 匯總表的分位數與我沒有指定頻率列一樣。
消息被編輯:mpb回复:自定義分位數Summary 沒有給你你想要的嗎?回复:自定義分位數可能有一種聰明的方法可以做到這一點,但這裡是蠻力方法的概述。 這個想法只是創建表格的矩陣版本,其中包含頻率列所指示的每個值的多次,然後從該矩陣計算所需的分位數。 類似此代碼的內容將與此線程中的前一個示例相結合。
style="font-size: 10pt; font-family: "Courier New"; 顏色: green;">/*
假設第一個表
列為 Y,第二列為 Freq
style="font-size: 10pt; font-family: "Courier New"; 顏色: green;">
風格="">
將 Y 列擴展為單個
每個原始 Y 的列矩陣
style="font-size: 10pt; font-family: "Courier New"; 顏色: green;">
風格="">
值重複頻率次數 */
style="font-size: 10pt; font-family: "Courier New"; 顏色: black;">
style="font-size: 10pt; font-family: "Courier New"; 顏色: black;">
風格="">
style="font-size: 10pt; font-family: "Courier New"; 顏色: black;">dt
style="font-size: 10pt; font-family: "Courier New"; 顏色: 海軍藍;">=
style="font-size: 10pt; font-family: "Courier New"; 顏色: black;">
style="font-size: 10pt; font-family: "Courier New"; 顏色: rgb(0, 0, 221);">當前
數據表
style="font-size: 10pt; font-family: "Courier New"; 顏色: black;">()
style="font-size: 10pt; font-family: "Courier New"; 顏色: 海軍藍;">;
style="font-size: 10pt; font-family: "Courier New"; 顏色: black;">
style="font-size: 10pt; font-family: "Courier New"; 顏色: black;">A
style="font-size: 10pt; font-family: "Courier New"; 顏色: 海軍藍;">=
style="font-size: 10pt; font-family: "Courier New"; 顏色: black;">
dt
style="font-size: 10pt; font-family: "Courier New"; 顏色: 海軍藍;"><<
style="font-size: 10pt; font-family: "Courier New"; 顏色: black;">
得到矩陣
style="font-size: 10pt; font-family: "Courier New"; 顏色: 海軍藍;">;
style="font-size: 10pt; font-family: "Courier New"; 顏色: black;">
style="font-size: 10pt; font-family: "Courier New"; 顏色: green;">//Show(
一個 );
style="font-size: 10pt; font-family: "Courier New"; 顏色: black;">
style="font-size: 10pt; font-family: "Courier New"; 顏色: black;">
style="font-size: 10pt; font-family: "Courier New"; 顏色: black;">expandA
style="font-size: 10pt; font-family: "Courier New"; 顏色: 海軍藍;">=
style="font-size: 10pt; font-family: "Courier New"; 顏色: black;">
[]
style="font-size: 10pt; font-family: "Courier New"; 顏色: 海軍藍;">;
style="font-size: 10pt; font-family: "Courier New"; 顏色: black;">
style="font-size: 10pt; font-family: "Courier New"; 顏色: rgb(0, 0, 221);">For
style="font-size: 10pt; font-family: "Courier New"; 顏色: 黑色;">(
style="font-size: 10pt; font-family: "Courier New"; 顏色: black;">
一世
style="font-size: 10pt; font-family: "Courier New"; 顏色: 海軍藍;">=
style="font-size: 10pt; font-family: "Courier New"; 顏色: black;">
style="font-size: 10pt; font-family: "Courier New"; 顏色: 青色;">1
style="font-size: 10pt; font-family: "Courier New"; 顏色: 海軍藍;">,
style="font-size: 10pt; font-family: "Courier New"; 顏色: black;">
一世
style="font-size: 10pt; font-family: "Courier New"; 顏色: 海軍藍;"><=
style="font-size: 10pt; font-family: "Courier New"; 顏色: black;">
style="font-size: 10pt; font-family: "Courier New"; 顏色: rgb(0, 0, 221);">N
行
style="font-size: 10pt; font-family: "Courier New"; 顏色: 黑色;">(
style="font-size: 10pt; font-family: "Courier New"; 顏色: black;">
dt )
style="font-size: 10pt; font-family: "Courier New"; 顏色: 海軍藍;">,
style="font-size: 10pt; font-family: "Courier New"; 顏色: black;">
一世
style="font-size: 10pt; font-family: "Courier New"; 顏色: 海軍藍;">++,
style="font-size: 10pt; font-family: "Courier New"; 顏色: black;">
style="font-size: 10pt; font-family: "Courier New"; 顏色: black;">
風格="">
伊瓦爾
style="font-size: 10pt; font-family: "Courier New"; 顏色: 海軍藍;">=
style="font-size: 10pt; font-family: "Courier New"; 顏色: black;">
一個[一世
style="font-size: 10pt; font-family: "Courier New"; 顏色: 海軍藍;">,
style="font-size: 10pt; font-family: "Courier New"; 顏色: black;">
style="font-size: 10pt; font-family: "Courier New"; 顏色: 青色;">1
style="font-size: 10pt; font-family: "Courier New"; 顏色: black;">]
style="font-size: 10pt; font-family: "Courier New"; 顏色: 海軍藍;">;
style="font-size: 10pt; font-family: "Courier New"; 顏色: black;">
style="font-size: 10pt; font-family: "Courier New"; 顏色: black;">
風格="">
頻率值
style="font-size: 10pt; font-family: "Courier New"; 顏色: 海軍藍;">=
style="font-size: 10pt; font-family: "Courier New"; 顏色: black;">
一個[一世
style="font-size: 10pt; font-family: "Courier New"; 顏色: 海軍藍;">,
style="font-size: 10pt; font-family: "Courier New"; 顏色: black;">
style="font-size: 10pt; font-family: "Courier New"; 顏色: 藍綠色;">2
style="font-size: 10pt; font-family: "Courier New"; 顏色: black;">]
style="font-size: 10pt; font-family: "Courier New"; 顏色: 海軍藍;">;
style="font-size: 10pt; font-family: "Courier New"; 顏色: black;">
style="font-size: 10pt; font-family: "Courier New"; 顏色: black;">
風格="">
style="font-size: 10pt; font-family: "Courier New"; 顏色: green;">//Show(
伊瓦爾,
頻率);
style="font-size: 10pt; font-family: "Courier New"; 顏色: black;">
style="font-size: 10pt; font-family: "Courier New"; 顏色: black;">
風格="">
展開A
style="font-size: 10pt; font-family: "Courier New"; 顏色: 海軍藍;">|/=
style="font-size: 10pt; font-family: "Courier New"; 顏色: black;">
style="font-size: 10pt; font-family: "Courier New"; 顏色: rgb(0, 0, 221);">J
style="font-size: 10pt; font-family: "Courier New"; 顏色: 黑色;">(
style="font-size: 10pt; font-family: "Courier New"; 顏色: black;">
頻率值
style="font-size: 10pt; font-family: "Courier New"; 顏色: 海軍藍;">,
style="font-size: 10pt; font-family: "Courier New"; 顏色: black;">
style="font-size: 10pt; font-family: "Courier New"; 顏色: 青色;">1
style="font-size: 10pt; font-family: "Courier New"; 顏色: 海軍藍;">,
style="font-size: 10pt; font-family: "Courier New"; 顏色: black;">
伊瓦爾)
style="font-size: 10pt; font-family: "Courier New"; 顏色: 海軍藍;">;
style="font-size: 10pt; font-family: "Courier New"; 顏色: black;">
style="font-size: 10pt; font-family: "Courier New"; 顏色: black;">
style="font-size: 10pt; font-family: "Courier New"; 顏色: black;">)
style="font-size: 10pt; font-family: "Courier New"; 顏色: 海軍藍;">;
style="font-size: 10pt; font-family: "Courier New"; 顏色: black;">
style="font-size: 10pt; font-family: "Courier New"; 顏色: green;">//Show(
展開A);
style="font-size: 10pt; font-family: "Courier New"; 顏色: black;">
style="font-size: 10pt; font-family: "Courier New"; 顏色: black;">minQ
style="font-size: 10pt; font-family: "Courier New"; 顏色: 海軍藍;">=
style="font-size: 10pt; font-family: "Courier New"; 顏色: black;">
style="font-size: 10pt; font-family: "Courier New"; color: rgb(0, 0, 221);">分位數
style="font-size: 10pt; font-family: "Courier New"; 顏色: 黑色;">(
style="font-size: 10pt; font-family: "Courier New"; 顏色: black;">
style="font-size: 10pt; font-family: "Courier New"; 顏色:teal;">0.0
style="font-size: 10pt; font-family: "Courier New"; 顏色: 海軍藍;">,
style="font-size: 10pt; font-family: "Courier New"; 顏色: black;">
展開A )
style="font-size: 10pt; font-family: "Courier New"; 顏色: 海軍藍;">;
style="font-size: 10pt; font-family: "Courier New"; 顏色: black;">
style="font-size: 10pt; font-family: "Courier New"; 顏色: black;">medQ
style="font-size: 10pt; font-family: "Courier New"; 顏色: 海軍藍;">=
style="font-size: 10pt; font-family: "Courier New"; 顏色: black;">
style="font-size: 10pt; font-family: "Courier New"; color: rgb(0, 0, 221);">分位數
style="font-size: 10pt; font-family: "Courier New"; 顏色: 黑色;">(
style="font-size: 10pt; font-family: "Courier New"; 顏色: black;">
style="font-size: 10pt; font-family: "Courier New"; 顏色:teal;">0.5
style="font-size: 10pt; font-family: "Courier New"; 顏色: 海軍藍;">,
style="font-size: 10pt; font-family: "Courier New"; 顏色: black;">
展開A )
style="font-size: 10pt; font-family: "Courier New"; 顏色: 海軍藍;">;
style="font-size: 10pt; font-family: "Courier New"; 顏色: black;">
style="font-size: 10pt; font-family: "Courier New"; 顏色: black;">maxQ
style="font-size: 10pt; font-family: "Courier New"; 顏色: 海軍藍;">=
style="font-size: 10pt; font-family: "Courier New"; 顏色: black;">
style="font-size: 10pt; font-family: "Courier New"; color: rgb(0, 0, 221);">分位數
style="font-size: 10pt; font-family: "Courier New"; 顏色: 黑色;">(
style="font-size: 10pt; font-family: "Courier New"; 顏色: black;">
style="font-size: 10pt; font-family: "Courier New"; 顏色: 青色;">1.0
style="font-size: 10pt; font-family: "Courier New"; 顏色: 海軍藍;">,
style="font-size: 10pt; font-family: "Courier New"; 顏色: black;">
展開A )
style="font-size: 10pt; font-family: "Courier New"; 顏色: 海軍藍;">;
style="font-size: 10pt; font-family: "Courier New"; 顏色: black;">
style="font-size: 10pt; font-family: "Courier New"; 顏色: black;">
style="font-size: 10pt; font-family: "Courier New"; 顏色: rgb(0, 0, 221);">顯示
style="font-size: 10pt; font-family: "Courier New"; 顏色: 黑色;">(
style="font-size: 10pt; font-family: "Courier New"; 顏色: black;">minQ
style="font-size: 10pt; font-family: "Courier New"; 顏色: 海軍藍;">,
style="font-size: 10pt; font-family: "Courier New"; 顏色: black;">medQ
style="font-size: 10pt; font-family: "Courier New"; 顏色: 海軍藍;">,
style="font-size: 10pt; font-family: "Courier New"; 顏色: black;">maxQ )回复:自定義分位數mpb,
謝謝你的劇本。 有用!!! 非常感謝,
我還有一個問題。在直方圖中,除了列之外,我還有頻率數據,
我試圖在腳本中添加頻率,但沒有奏效。
謝謝,回复:自定義分位數我所知道的沒有辦法內置。 但是,您可以刪除默認的分位數段,並將其替換為顯示您感興趣的分位數的定制段。 下面的簡單示例表明瞭如何做到這一點。
dt
style="font-size: 10pt; font-family: "Courier New"; 顏色: 海軍藍;">=
style="font-size: 10pt; font-family: "Courier New"; 顏色: black;">
style="font-size: 10pt; font-family: "Courier New"; 顏色: rgb(0, 0, 221);">打開
style="font-size: 10pt; font-family: "Courier New"; 顏色: 黑色;">(
style="font-size: 10pt; font-family: "Courier New"; 顏色: black;">
style="font-size: 10pt; font-family: "Courier New"; 顏色: 紫色;">"$SAMPLE_DATA/fitness.jmp"
style="font-size: 10pt; font-family: "Courier New"; 顏色: black;">
)
style="font-size: 10pt; font-family: "Courier New"; 顏色: 海軍藍;">;
style="font-size: 10pt; font-family: "Courier New"; 顏色: black;">
style="font-size: 10pt; font-family: "Courier New"; 顏色: black;">dist
style="font-size: 10pt; font-family: "Courier New"; 顏色: 海軍藍;">=
style="font-size: 10pt; font-family: "Courier New"; 顏色: black;">
分配(
連續分佈(
style="font-size: 10pt; font-family: "Courier New"; color: rgb(0, 0, 221);">列
style="font-size: 10pt; font-family: "Courier New"; 顏色: 黑色;">(
style="font-size: 10pt; font-family: "Courier New"; 顏色: black;">
style="font-size: 10pt; font-family: "Courier New"; 顏色: 海軍藍;">:
style="font-size: 10pt; font-family: "Courier New"; 顏色: black;">Oxy
)
)
)
style="font-size: 10pt; font-family: "Courier New"; 顏色: 海軍藍;">;
style="font-size: 10pt; font-family: "Courier New"; 顏色: black;">
style="font-size: 10pt; font-family: "Courier New"; 顏色: black;">rdist
style="font-size: 10pt; font-family: "Courier New"; 顏色: 海軍藍;">=
style="font-size: 10pt; font-family: "Courier New"; 顏色: black;">
style="font-size: 10pt; font-family: "Courier New"; color: rgb(0, 0, 221);">報告
style="font-size: 10pt; font-family: "Courier New"; 顏色: 黑色;">(
style="font-size: 10pt; font-family: "Courier New"; 顏色: black;">
距離)
style="font-size: 10pt; font-family: "Courier New"; 顏色: 海軍藍;">;
style="font-size: 10pt; font-family: "Courier New"; 顏色: black;">
style="font-size: 10pt; font-family: "Courier New"; 顏色: black;">rdist [
style="font-size: 10pt; font-family: "Courier New"; 顏色: Purple;">"分位數"
style="font-size: 10pt; font-family: "Courier New"; 顏色: black;">]
style="font-size: 10pt; font-family: "Courier New"; 顏色: black;">
style="font-size: 10pt; font-family: "Courier New"; 顏色: 海軍藍;"><<
style="font-size: 10pt; font-family: "Courier New"; 顏色: black;">
刪除
style="font-size: 10pt; font-family: "Courier New"; 顏色: 海軍藍;">;
style="font-size: 10pt; font-family: "Courier New"; 顏色: black;">
style="font-size: 10pt; font-family: "Courier New"; 顏色: black;">
style="font-size: 10pt; font-family: "Courier New"; 顏色: black;">maxQ
style="font-size: 10pt; font-family: "Courier New"; 顏色: 海軍藍;">=
style="font-size: 10pt; font-family: "Courier New"; 顏色: black;">
style="font-size: 10pt; font-family: "Courier New"; 顏色: rgb(0, 0, 221);">Col
分位數
style="font-size: 10pt; font-family: "Courier New"; 顏色: 黑色;">(
style="font-size: 10pt; font-family: "Courier New"; 顏色: black;">
style="font-size: 10pt; font-family: "Courier New"; 顏色: 海軍藍;">:
style="font-size: 10pt; font-family: "Courier New"; 顏色: black;">Oxy
style="font-size: 10pt; font-family: "Courier New"; 顏色: 海軍藍;">,
style="font-size: 10pt; font-family: "Courier New"; 顏色: black;">
style="font-size: 10pt; font-family: "Courier New"; 顏色: 青色;">1
style="font-size: 10pt; font-family: "Courier New"; 顏色: black;">
)
style="font-size: 10pt; font-family: "Courier New"; 顏色: 海軍藍;">;
style="font-size: 10pt; font-family: "Courier New"; 顏色: black;">
style="font-size: 10pt; font-family: "Courier New"; 顏色: black;">medQ
style="font-size: 10pt; font-family: "Courier New"; 顏色: 海軍藍;">=
style="font-size: 10pt; font-family: "Courier New"; 顏色: black;">
style="font-size: 10pt; font-family: "Courier New"; 顏色: rgb(0, 0, 221);">Col
分位數
style="font-size: 10pt; font-family: "Courier New"; 顏色: 黑色;">(
style="font-size: 10pt; font-family: "Courier New"; 顏色: black;">
style="font-size: 10pt; font-family: "Courier New"; 顏色: 海軍藍;">:
style="font-size: 10pt; font-family: "Courier New"; 顏色: black;">Oxy
style="font-size: 10pt; font-family: "Courier New"; 顏色: 海軍藍;">,
style="font-size: 10pt; font-family: "Courier New"; 顏色: black;">
style="font-size: 10pt; font-family: "Courier New"; 顏色: 青色;">0.5
style="font-size: 10pt; font-family: "Courier New"; 顏色: black;">
)
style="font-size: 10pt; font-family: "Courier New"; 顏色: 海軍藍;">;
style="font-size: 10pt; font-family: "Courier New"; 顏色: black;">
style="font-size: 10pt; font-family: "Courier New"; 顏色: black;">minQ
style="font-size: 10pt; font-family: "Courier New"; 顏色: 海軍藍;">=
style="font-size: 10pt; font-family: "Courier New"; 顏色: black;">
style="font-size: 10pt; font-family: "Courier New"; 顏色: rgb(0, 0, 221);">Col
分位數
style="font-size: 10pt; font-family: "Courier New"; 顏色: 黑色;">(
style="font-size: 10pt; font-family: "Courier New"; 顏色: black;">
style="font-size: 10pt; font-family: "Courier New"; 顏色: 海軍藍;">:
style="font-size: 10pt; font-family: "Courier New"; 顏色: black;">Oxy
style="font-size: 10pt; font-family: "Courier New"; 顏色: 海軍藍;">,
style="font-size: 10pt; font-family: "Courier New"; 顏色: black;">
style="font-size: 10pt; font-family: "Courier New"; 顏色: 青色;">0
style="font-size: 10pt; font-family: "Courier New"; 顏色: black;">
)
style="font-size: 10pt; font-family: "Courier New"; 顏色: 海軍藍;">;
style="font-size: 10pt; font-family: "Courier New"; 顏色: black;">
style="font-size: 10pt; font-family: "Courier New"; 顏色: black;">
style="font-size: 10pt; font-family: "Courier New"; 顏色: 黑色;">(
style="font-size: 10pt; font-family: "Courier New"; 顏色: black;">rdist [
style="font-size: 10pt; font-family: "Courier New"; 顏色: Purple;">"Oxy"
style="font-size: 10pt; font-family: "Courier New"; 顏色: black;">])
style="font-size: 10pt; font-family: "Courier New"; 顏色: black;">
style="font-size: 10pt; font-family: "Courier New"; 顏色: 海軍藍;"><<
style="font-size: 10pt; font-family: "Courier New"; 顏色: black;">
附加(
style="font-size: 10pt; font-family: "Courier New"; 顏色: black;">
風格="">
style="font-size: 10pt; font-family: "Courier New"; 顏色: rgb(0, 0, 221);">輪廓
盒子
style="font-size: 10pt; font-family: "Courier New"; 顏色: 黑色;">(
style="font-size: 10pt; font-family: "Courier New"; 顏色: black;">
style="font-size: 10pt; font-family: "Courier New"; 顏色: Purple;">"分位數"
style="font-size: 10pt; font-family: "Courier New"; 顏色: 海軍藍;">,
style="font-size: 10pt; font-family: "Courier New"; 顏色: black;">
style="font-size: 10pt; font-family: "Courier New"; 顏色: black;">
風格="">
style="font-size: 10pt; font-family: "Courier New"; 顏色: rgb(0, 0, 221);">表格
盒子
style="font-size: 10pt; font-family: "Courier New"; 顏色: 黑色;">(
style="font-size: 10pt; font-family: "Courier New"; 顏色: black;">
style="font-size: 10pt; font-family: "Courier New"; 顏色: rgb(0, 0, 221);">字符串
彩色盒
style="font-size: 10pt; font-family: "Courier New"; 顏色: 黑色;">(
style="font-size: 10pt; font-family: "Courier New"; 顏色: black;">
style="font-size: 10pt; font-family: "Courier New"; 顏色: 紫色;">""
style="font-size: 10pt; font-family: "Courier New"; 顏色: 海軍藍;">,
style="font-size: 10pt; font-family: "Courier New"; 顏色: black;">
{
style="font-size: 10pt; font-family: "Courier New"; 顏色: 紫色;">"100.0%"
style="font-size: 10pt; font-family: "Courier New"; 顏色: 海軍藍;">,
style="font-size: 10pt; font-family: "Courier New"; 顏色: black;">
style="font-size: 10pt; font-family: "Courier New"; 顏色: 紫色;">"50%"
style="font-size: 10pt; font-family: "Courier New"; 顏色: 海軍藍;">,
style="font-size: 10pt; font-family: "Courier New"; 顏色: black;">
style="font-size: 10pt; font-family: "Courier New"; 顏色: 紫色;">"0.0%"
style="font-size: 10pt; font-family: "Courier New"; 顏色: black;">}
style="font-size: 10pt; font-family: "Courier New"; 顏色: black;">
)
style="font-size: 10pt; font-family: "Courier New"; 顏色: 海軍藍;">,
style="font-size: 10pt; font-family: "Courier New"; 顏色: black;">
style="font-size: 10pt; font-family: "Courier New"; 顏色: black;">
風格="">
style="font-size: 10pt; font-family: "Courier New"; 顏色: rgb(0, 0, 221);">數字
彩色盒
style="font-size: 10pt; font-family: "Courier New"; 顏色: 黑色;">(
style="font-size: 10pt; font-family: "Courier New"; 顏色: black;">
style="font-size: 10pt; font-family: "Courier New"; 顏色: 紫色;">""
style="font-size: 10pt; font-family: "Courier New"; 顏色: 海軍藍;">,
style="font-size: 10pt; font-family: "Courier New"; 顏色: black;">
{最大Q
style="font-size: 10pt; font-family: "Courier New"; 顏色: 海軍藍;">,
style="font-size: 10pt; font-family: "Courier New"; 顏色: black;">
醫療Q
style="font-size: 10pt; font-family: "Courier New"; 顏色: 海軍藍;">,
style="font-size: 10pt; font-family: "Courier New"; 顏色: black;">
最小Q }
)
)
style="font-size: 10pt; font-family: "Courier New"; 顏色: black;">
風格="">
)
style="font-size: 10pt; font-family: "Courier New"; 顏色: black;">)
style="font-size: 10pt; font-family: "Courier New"; 顏色: black;">