如何創建包含均值和顯著不同字母的匯總表?你好
我使用 jmp 來分析實驗,並且需要在匯總表中顯示具有顯著不同字母的平均值(使用比較平均值測試之一,例如 Student t 或 tukey kramer)
我不知道如何使用 jmp 在一個表中執行此操作,所以我所做的是將每個表(分別針對每個參數)導出到 excel,然後在那裡對其進行排序,但這需要很多時間
有沒有辦法用 jmp 簡單地做到這一點?
我最終想要的是一個看起來像這樣的桌子
| 治療 | 參數1 | 參數2 | 參數3 | 參數4 | 參數5 |
| 治療1 | 100A | 32A | 98A | 54AB | 95A |
| 治療2 | 75E | 23℃ | 79℃ | 45℃ | 68℃ |
| 治療3 | 97AB | 31A | 98A | 58A | 96A |
| 治療4 | 公元前94年 | 30AB | 95AB | 56A | 95A |
| 治療5 | 91 光盤 | 30AB | 94AB | 51 ABC | 93A |
| 治療6 | 89 D | 27 ABC | 93乙 | 公元前48年 | 82乙 |
| 治療7 | 71樓 | 公元前25年 | 58D | 47℃ | 64℃ |
| 治療8 | 95乙 | 28 ABC | 96AB | 54AB | 93A |
或者如果不可能的話,也許一張表格用於表示方法,另一張表格用於字母或類似的東西
有人有一個簡單的方法嗎?
謝謝
大規模定制回复:如何創建一個包含平均值和顯著不同字母的匯總表?轉到下拉菜單並選擇
文件==>新建==>腳本
然後將腳本從網頁剪切並粘貼到腳本窗口
單擊運行圖標
運行腳本。
確保它給您帶來相同的結果並且這是您想要的。
關於可以在腳本中更改的學生 t 與克萊默等。 線路中的“所有對”
ow = dt << Oneway( invisible, Y( Column( dt, colNames[p] ) ), X( Column( dt, factor ) ), All Pairs( 1 ) );
指的是圖基
下面一行中的“每對”是指學生 t
ow = dt << Oneway( invisible, Y( Column( dt, colNames[p] ) ), X( Column( dt, factor ) ), Each Pair( 1 ) );
我提供的 JSL 是一個良好的開始,可以幫助您到達您想去的地方。我們期望所提供的內容將為您解決問題提供良好的“幫助”。正如您對 Excel 所做的那樣,需要進行學習。
社區致力於幫助您盡可能輕鬆地學習。
我強烈建議您花時間閱讀一些 JMP 文檔。特別是《發現 JMP》、《使用 JMP》等文檔,然後是《腳本指南》。
幫助==>JMP 文檔庫
腳本中完成的所有操作也可以交互地完成。
- 運行您想要的 Fit Y by X 分析,並生成字母比較
- 右鍵單擊字母表,然後選擇列。
- 取消選中所有名為 --Letters Column AO 的列
- 檢查“信件”欄
- 再次右鍵單擊 Letters 表,然後選擇“製作為數據表”
- 要將“平均值”列和“字母”列放在一起,只需創建一個新的字符列,為其指定當前參數名稱。為列指定以下公式
char(:Mean) || " " || :Letters
- 現在刪除 2 個不必要的列,Mean 和 Letters
- 如果這是第一個參數,則只需保留該表。如果這是第二個或更高的參數,則只需運行 Tables==>Update 將當前參數表與初始表放在一起
回复:如何創建一個包含平均值和顯著不同字母的匯總表?謝謝
但是...我不是該軟件的非常老練的用戶,因此如果您能更詳細地解釋我如何處理您發布的代碼,這將對我有很大幫助?
我應該將其粘貼到哪里以及如何選擇要使用的統計檢驗(例如 tukey kramer 或 Student t)
非常感謝
回复:如何創建一個包含平均值和顯著不同字母的匯總表?這是創建您想要的報告表的開始

Names Default To Here( 1 );
dt = Open( "$SAMPLE_DATA/big class.jmp" );
// Specify the parameters to be analyzed and the Factor column
colNames = {"height", "weight"};
factor = "age";
// Create the beginnings of the final data table
Summarize( dt, levelGroup = by( As Column( factor ) ) );
dtFinal = New Table( "Final", New Column( "Level", character, set values( levelGroup ) ) );
// Loop across all of the parameters and gather the data
For( p = 1, p <= N Items( colNames ), p++,
ow = dt << Oneway( invisible, Y( Column( dt, colNames[p] ) ), X( Column( dt, factor ) ), All Pairs( 1 ) );
// Add the combined letters column
Report( ow )["Connecting Letters Report"][String Col Box( 17 )] << visibility( "Visible" );
// Delete all of the individual letters columns
For( i = 2, i <= 16, i++,
Report( ow )["Connecting Letters Report"][String Col Box( i )] << visibility( "Collapse" )
);
// Create a data table from the Means/Letters table
dtLetters = Report( ow )["Connecting Letters Report"][Table Box( 1 )] << make into data table;
// Combine the Means and Letters
dtLetters:Mean << data type(character);
for each row(
dtLetters:Mean = dtLetters:Mean || " " || dtLetters:Letters;
);
// Change the name of the column to the parameter name
dtLetters:Mean << set name( ColNames[p] );
dtLetters << delete columns("letters");
// Add the current table to the overall table
dtFinal <<UPDATE></UPDATE>