mauchly.test(stats)
mauchly.test()所属R语言包:stats
Mauchly's Test of Sphericity
莫齐利球形的测试
译者:生物统计家园网 机器人LoveR
描述----------Description----------
Tests whether a Wishart-distributed covariance matrix (or transformation thereof) is proportional to a given matrix.
测试是否威沙特分布式协方差矩阵(或改造者除外)是一个给定的矩阵成正比。
用法----------Usage----------
mauchly.test(object, ...)
## S3 method for class 'mlm'
mauchly.test(object,...)
## S3 method for class 'SSD'
mauchly.test(object, Sigma = diag(nrow = p),
T = Thin.row(proj(M) - proj(X)), M = diag(nrow = p), X = ~0,
idata = data.frame(index = seq_len(p)), ...)
参数----------Arguments----------
参数:object
object of class SSD or mlm.
对象的类SSD或mlm。
参数:Sigma
matrix to be proportional to.
矩阵是成正比的。
参数:T
transformation matrix. By default computed from M and X.
变换矩阵。默认情况下,从M和X计算。
参数:M
formula or matrix describing the outer projection (see below).
公式或矩阵描述外投影(见下文)。
参数:X
formula or matrix describing the inner projection (see below).
公式或矩阵描述(见下文)内的投影。
参数:idata
data frame describing intra-block design.
数据框描述块内的设计。
参数:...
arguments to be passed to or from other methods.
参数被传递到或从其他方法。
Details
详情----------Details----------
Mauchly's test test for whether a covariance matrix can be assumed to be proportional to a given matrix.
莫齐利测试测试是否协方差矩阵可以被假定为一个给定的矩阵成正比。
This is a generic function with methods for classes "mlm" and "SSD".
这是一个通用方法类"mlm"和"SSD"功能。
The basic method is for objects of class SSD the method for mlm objects just extracts the SSD matrix and invokes the corresponding method with the same options and arguments.
类SSD方法的对象的基本方法是mlm对象只是提取了SSD矩阵,并调用相应的方法具有相同的选项和参数。
The T argument is used to transform the observations prior to testing. This typically involves transformation to intra-block differences, but more complicated within-block designs can be encountered, making more elaborate transformations necessary. A matrix T can be given directly or specified as the difference between two projections onto the spaces spanned by M and X, which in turn can be given as matrices or as model formulas with respect to idata (the tests will be invariant to parametrization of the quotient space M/X).
T参数是用来测试前改造的意见。这通常涉及转换块内部的分歧,但更复杂的区块内的设计,使得有必要更详细的转换可能会遇到。 T矩阵可以直接或指定到M和X,这反过来又可以作为矩阵方面的模型公式跨越空间的预测之间的差异idata(测试将是不变的,以参数化的商空间M/X)。
The common use of this test is in repeated measurements designs, with X=~1. This is almost, but not quite the same as testing for compound symmetry in the untransformed covariance matrix.
这次试验的常见用途是在重复测量设计,用X=~1。这是差不多,但不太相同的测试化合物在未转换的协方差矩阵的对称性。
Notice that the defaults involve p, which is calculated internally as the dimension of the SSD matrix, and a couple of hidden functions in the stats namespace, namely proj which calculates projection matrices from design matrices or model formulas and Thin.row which removes linearly dependent rows from a matrix until it has full row rank.
请注意,默认涉及p,其计算公式为SSD的矩阵维内部,几个stats命名空间中的隐藏功能,即proj从设计计算投影矩阵矩阵或模型公式和Thin.row消除线性依赖行,直到它具有行满秩矩阵。
值----------Value----------
An object of class "htest"
一个对象的类"htest"
注意----------Note----------
The p-value differs slightly from that of SAS because a second order term is included in the asymptotic approximation in R.
因为长期在R中的渐近逼近二阶p值不同的SAS略有
参考文献----------References----------
Statistical Analysis. Wiley.
参见----------See Also----------
SSD, anova.mlm
SSD,anova.mlm
举例----------Examples----------
utils::example(SSD) # Brings in the mlmfit and reacttime objects[带来的mlmfit和reacttime对象]
### traditional test of intrasubj. contrasts[intrasubj#传统的测试。对比]
mauchly.test(mlmfit, X=~1)
### tests using intra-subject 3x2 design[#测试使用内受3x2的设计]
idata <- data.frame(deg=gl(3,1,6, labels=c(0,4,8)),
noise=gl(2,3,6, labels=c("A","P")))
mauchly.test(mlmfit, X = ~ deg + noise, idata = idata)
mauchly.test(mlmfit, M = ~ deg + noise, X = ~ noise, idata=idata)
转载请注明:出自 生物统计家园网(http://www.biostatistic.net)。
注:
注1:为了方便大家学习,本文档为生物统计家园网机器人LoveR翻译而成,仅供个人R语言学习参考使用,生物统计家园保留版权。
注2:由于是机器人自动翻译,难免有不准确之处,使用时仔细对照中、英文内容进行反复理解,可以帮助R语言的学习。
注3:如遇到不准确之处,请在本贴的后面进行回帖,我们会逐渐进行修订。
|