quade.test 位於 stats 包(package)。 說明
使用未複製的阻塞數據執行 Quade 測試。
用法
quade.test(y, ...)
## Default S3 method:
quade.test(y, groups, blocks, ...)
## S3 method for class 'formula'
quade.test(formula, data, subset, na.action, ...)
參數
| y | 數據值的數值向量或數據矩陣。 | 
| groups | 如果這是一個向量,則給出  | 
| blocks | 如果這是一個向量,則給出  | 
| formula | 
 | 
| data | 包含公式  | 
| subset | 一個可選向量,指定要使用的觀測子集。 | 
| na.action | 一個函數,指示當數據包含  | 
| ... | 要傳遞給方法或從方法傳遞的更多參數。 | 
細節
quade.test 可用於分析未複製的完整模塊設計(即,對於 groups 和 blocks 級別的每種組合,y 中恰好有一個觀察結果),其中可能違反正態性假設。
原假設是,除了blocks 的影響之外,y 的位置參數在每個groups 中都是相同的。
如果y是矩陣,則分別從列索引和行索引獲得groups和blocks。 NA 不允許出現在 groups 或 blocks 中;如果 y 包含 NA ,則刪除相應的塊。
值
類"htest" 的列表包含以下組件:
| statistic | Quade 的 F 統計量的值。 | 
| parameter | 具有檢驗統計量的近似 F 分布的分子和分母自由度的向量。 | 
| p.value | 檢驗的 p 值。 | 
| method | 字符串  | 
| data.name | 給出數據名稱的字符串。 | 
例子
## Conover (1999, p. 375f):
## Numbers of five brands of a new hand lotion sold in seven stores
## during one week.
y <- matrix(c( 5,  4,  7, 10, 12,
               1,  3,  1,  0,  2,
              16, 12, 22, 22, 35,
               5,  4,  3,  5,  4,
              10,  9,  7, 13, 10,
              19, 18, 28, 37, 58,
              10,  7,  6,  8,  7),
            nrow = 7, byrow = TRUE,
            dimnames =
            list(Store = as.character(1:7),
                 Brand = LETTERS[1:5]))
y
(qTst <- quade.test(y))
## Show equivalence of different versions of test :
utils::str(dy <- as.data.frame(as.table(y)))
qT. <- quade.test(Freq ~ Brand|Store, data = dy)
qT.$data.name <- qTst$data.name
stopifnot(all.equal(qTst, qT., tolerance = 1e-15))
dys <- dy[order(dy[,"Freq"]),]
qTs <- quade.test(Freq ~ Brand|Store, data = dys)
qTs$data.name <- qTst$data.name
stopifnot(all.equal(qTst, qTs, tolerance = 1e-15))
參考
D. Quade (1979), Using weighted rankings in the analysis of complete blocks with additive block effects. Journal of the American Statistical Association 74, 680-683.
William J. Conover (1999), Practical nonparametric statistics. New York: John Wiley & Sons. Pages 373-380.
也可以看看
相關用法
- R quantile 樣本分位數
- R qqnorm 分位數-分位數圖
- R stlmethods STL 對象的方法
- R medpolish 矩陣的中值波蘭(穩健雙向分解)
- R naprint 調整缺失值
- R summary.nls 總結非線性最小二乘模型擬合
- R summary.manova 多元方差分析的匯總方法
- R formula 模型公式
- R nls.control 控製 nls 中的迭代
- R aggregate 計算數據子集的匯總統計
- R deriv 簡單表達式的符號和算法導數
- R kruskal.test Kruskal-Wallis 秩和檢驗
- R decompose 移動平均線的經典季節性分解
- R plot.stepfun 繪製階躍函數
- R alias 查找模型中的別名(依賴項)
- R eff.aovlist 多層方差分析的計算效率
- R pairwise.t.test 成對 t 檢驗
- R loglin 擬合對數線性模型
- R predict.smooth.spline 通過平滑樣條擬合進行預測
- R bartlett.test 方差齊性的 Bartlett 檢驗
- R influence.measures 回歸刪除診斷
- R loess.control 設置黃土參數
- R Normal 正態分布
- R summary.lm 總結線性模型擬合
- R Uniform 均勻分布
注:本文由純淨天空篩選整理自R-devel大神的英文原創作品 Quade Test。非經特殊聲明,原始代碼版權歸原作者所有,本譯文未經允許或授權,請勿轉載或複製。
