Location tests(SpatialNP)
Location tests()所属R语言包:SpatialNP
Spatial sign and rank tests of multivariate location
空间符号和秩检验多元分布的位置
译者:生物统计家园网 机器人LoveR
描述----------Description----------
Multivariate tests of location of one or more samples based on spatial signs and (signed) ranks. In case of one sample the null hypothesis about a given location is tested. In case of several samples the null hypothesis is that all samples have the same
多变量测试位置的一个或多个样品基于空间和体征(签名)行列。在零假设一个样本的情况下,对一个给定的位置进行测试。在几个样品的情况下,零假设是,所有样品具有相同的
用法----------Usage----------
nullvalue = NULL, cond = FALSE, cond.n = 1000,
参数----------Arguments----------
参数:X
a matrix or a data frame
一个矩阵或一个数据框
参数:Y
an optional matrix or a data frame
一个可选的矩阵或一个数据框
参数:g
a factor giving the groups (may contain just one level)
给组(一个因素可能只包含一个级别)
参数:score
a character string indicating which transformation of the observations should be used
改造的意见,应使用一个字符串,指示
参数:nullvalue
location to be tested in the one sample case (ignored if there is more than one sample)
一个样品的情况下进行测试,在位置(忽略,如果有一个以上的样品)
参数:cond
logical. Should the conditionally distribution free test be used? (Ignored if score is "rank")
逻辑。如果有条件分布测试用吗? (忽略score如果是"rank")
参数:cond.n
number of permutations to use in the conditionally distribution free test
在有条件分布测试的排列组合使用
参数:na.action
a function which indicates what should happen when the data contain 'NA's. Default is to fail.
一个函数,它表示时会发生什么数据包含“NA”。默认是要失败的。
参数:...
further arguments to be passed to other functions
进一步的参数被传递到其他功能
Details
详细信息----------Details----------
X should contain the the whole data set and g should describe the groups, or, if there is only one group, g may be missing. Alternatively, if there are two samples X may contain only the first sample while the second sample is given in Y and g is ignored. Note that in the one sample case when rank is chosen as score the function in fact uses signed ranks.
X应该包含整个数据集和g应说明的群体,或者,如果只有一组,g可能会丢失。或者,如果有两个样品X可能只包含第一个样品,而所述第二样本给出在Y和g被忽略。请注意,在一个样本的情况下,当rank选择score的功能实际上是采用符号秩。
Note that the conditionally distribution free p-value is only provided for the sign based version of the test.
请注意,有条件分布的p值,仅提供基于符号版本的测试。
值----------Value----------
A list with class 'htest' containing the following components:
列表类的htest“包含以下组件:
参数:statistic
the value of the statistic
的统计量的值
参数:parameter
the degrees of freedom for the statistic or the number of replications if conditionally distribution free p-value was used
有条件分布的免费的p-值的统计或复制数,如果使用的自由度
参数:p.value
the p-value for the test
p-值测试
参数:null.value
the specified hypothesized value of the (common) location
指定的假设值(普通)位置
参数:alternative
a character string with the value 'two.sided'.
一个字符串的值two.sided“。
参数:method
a character string indicating what type of test was performed
一个字符串,表示什么类型的测试执行
参数:data.name
a character string giving the name of the data (and grouping vector)
给出的数据的名称的字符串(和分组矢量)
(作者)----------Author(s)----------
Seija Sirkia, <a href="mailto:seija.sirkia@iki.fi">seija.sirkia@iki.fi</a>
参考文献----------References----------
<h3>See Also</h3>
实例----------Examples----------
A<-matrix(c(1,2,-3,4,3,-2,-1,0,4),ncol=3)
X<-rbind(matrix(rnorm(1500),ncol=3),matrix(rnorm(750)+1,ncol=3))%*%t(A)
sr.loc.test(X,cond=TRUE)
X[1:250,]<-X[1:250,]+1
g<-factor(rep(c(1,2,3),each=250))
sr.loc.test(X,g=g,score="rank")
转载请注明:出自 生物统计家园网(http://www.biostatistic.net)。
注:
注1:为了方便大家学习,本文档为生物统计家园网机器人LoveR翻译而成,仅供个人R语言学习参考使用,生物统计家园保留版权。
注2:由于是机器人自动翻译,难免有不准确之处,使用时仔细对照中、英文内容进行反复理解,可以帮助R语言的学习。
注3:如遇到不准确之处,请在本贴的后面进行回帖,我们会逐渐进行修订。
|