bootstrapT(maigesPack)
bootstrapT()所属R语言包:maigesPack
Calculate bootstrap p-values for t statistics
计算引导P-t统计值
译者:生物统计家园网 机器人LoveR
描述----------Description----------
This function takes a numerical matrix and column indexes for two groups to calculate bootstrapped (by re-sampling) p-values comparing the equality of means from the two groups.
此功能需要一个数值矩阵两组,列索引来计算自举(重采样),比较两组的手段平等的p值。
用法----------Usage----------
bootstrapT(x, k=20000, obs1, obs2, ...)
参数----------Arguments----------
参数:x
numerical matrix to be bootstrapped. The t statistics is calculated by row using the column indexes given by obs1 and obs2 for the two groups tested.
被引导的数值矩阵。 t统计量的计算方法是使用列obs1和obs2两组进行测试的指定索引的行。
参数:k
number of bootstrap re-samplings to be done. Defaults to 20000.
引导进行重新取样的数量。默认为20000。
参数:obs1
logical or numerical column indexes of the first group.
第一组的逻辑或数值列索引。
参数:obs2
logical or numerical column indexes of the second group.
第二组的逻辑或数值列索引。
参数:...
additional parameters for t.test function from package stats.
t.test包统计功能的附加参数。
值----------Value----------
The result of this function is a numerical matrix with number of rows given by the rows of the argument x and 3 columns. The first column contain the difference of means between the two groups, the second one contain the original t statistic and the last one gives the bootstrapped p-values, for all rows of the matrix x.
这个函数的结果是一个数值矩阵参数x和3列行的行数。第一列包含的手段,两组之间的差异,第二个包含原始的t统计量,最后一个给所有行矩阵x自举p值。
作者(S)----------Author(s)----------
Gustavo H. Esteves <<a href="mailto:gesteves@vision.ime.usp.br">gesteves@vision.ime.usp.br</a>>
参见----------See Also----------
t.test from package stats.
t.test包统计。
举例----------Examples----------
z <- matrix(rnorm(100, 0, 1), 4, 25)
bootstrapT(z, k=100, obs1=1:14, obs2=15:25)
转载请注明:出自 生物统计家园网(http://www.biostatistic.net)。
注:
注1:为了方便大家学习,本文档为生物统计家园网机器人LoveR翻译而成,仅供个人R语言学习参考使用,生物统计家园保留版权。
注2:由于是机器人自动翻译,难免有不准确之处,使用时仔细对照中、英文内容进行反复理解,可以帮助R语言的学习。
注3:如遇到不准确之处,请在本贴的后面进行回帖,我们会逐渐进行修订。
|