wtd.t.test(weights)
wtd.t.test()所属R语言包:weights
Produces weighted Student's t-tests with standard errors and significance.
生成加权学生的t检验的标准误差和意义。
译者:生物统计家园网 机器人LoveR
描述----------Description----------
wtd.t.test produces either one- or two-sample t-tests comparing weighted data streams to one another.
wtd.t.test产生一个或两个样本t检验比较彼此的加权数据流。
用法----------Usage----------
wtd.t.test(x, y=0, weight=NULL, weighty=NULL, samedata=TRUE)
参数----------Arguments----------
参数:x
x is a numerical vector which the researcher wishes to test against y.
x是一个数值向量,研究人员希望测试y。
参数:y
y can be either a single number representing an alternative hypothesis or a second numerical vector which the researcher wishes to compare against x.
y可以是一个单一的数字,代表的假说,研究人员希望对x比较的第二个数值向量。
参数:weight
weight is an optional vector of weights to be used to determine the weighted mean and variance for the x vector for all t-tests. If weighty is unspecified and samedata is TRUE, this weight will be assumed to apply to both x and y.
weight是一个可选被用来确定加权x对所有的t-测试向量的均值和方差的权重向量。如果weighty是不确定的,并且samedata是TRUE,这样的重量将被假定为适用于两个x和y。
参数:weighty
weighty is an optional vector of weights to be used to determine the weighted mean and variance for the y vector for two-sample t-tests. If weighty is unspecified and samedata is TRUE, this weight will be assumed to equal weightx. If weighty is unspecified and samedata is FALSE, this weight will be assumed to equal 1 for all cases.
weighty是一个可选的两样本t测试被用来确定y矢量的加权平均值和方差的权重向量。如果weighty是不确定的,并且samedata是TRUE,这样的重量将被假定为等于weightx。如果weighty是不确定的,并且samedata是FALSE,这样的重量将被假定为等于1的所有情况。
参数:samedata
samedata is an optional identifier for whether the x and y data come from the same data stream for a two-sample test. If true, wtd.t.test assumes that weighty should equal weightx if (1) weighty is unspecified, and (2) the lengths of the two vectors are identical.
samedata是一个可选的标识符是否安装了x和y数据来自同一数据流的双样本检验。如果为true,wtd.t.test假设weighty应等于weightx(1)weighty是不确定的,(2)两个向量的长度是相同的。
值----------Value----------
A list element with an identifier for the test; coefficients for the t value, degrees of freedom, and p value of the t-test; and additional statistics of potential interest.
与测试的标识符的列表元素;系数t值,自由度,和p值的t-检验;和附加的统计数据的潜在利益。
(作者)----------Author(s)----------
Josh Pasek, Assistant Professor of Communication Studies at the University of Michigan (www.joshpasek.com).
参见----------See Also----------
stdz wtd.cor wtd.chi.sq
stdzwtd.corwtd.chi.sq
实例----------Examples----------
test <- c(1,1,1,1,1,1,2,2,2,3,3,3,4,4)
t2 <- rev(test)+1
weight <- c(.5,.5,.5,.5,.5,1,1,1,1,2,2,2,2,2)
wtd.t.test(test, t2)
wtd.t.test(test, t2, weight)
转载请注明:出自 生物统计家园网(http://www.biostatistic.net)。
注:
注1:为了方便大家学习,本文档为生物统计家园网机器人LoveR翻译而成,仅供个人R语言学习参考使用,生物统计家园保留版权。
注2:由于是机器人自动翻译,难免有不准确之处,使用时仔细对照中、英文内容进行反复理解,可以帮助R语言的学习。
注3:如遇到不准确之处,请在本贴的后面进行回帖,我们会逐渐进行修订。
|