找回密码
 注册
查看: 742|回复: 0

R语言 factDesign包 contrasts()函数中文帮助文档(中英文对照)

[复制链接]
发表于 2012-2-25 17:32:14 | 显示全部楼层 |阅读模式
contrasts(factDesign)
contrasts()所属R语言包:factDesign

                                        Construct appropriate lambda matrix and test linear contrasts of the parameter estimates from a linear model.
                                         估计线性模型构建适当的lambda矩阵和测试参数的线性对比。

                                         译者:生物统计家园网 机器人LoveR

描述----------Description----------

'par2lambda' takes list of lm coefficient names and a corresponding list of numeric vectors corresponding to hypothesis tests of linear contrasts and returns a lambda matrix suitable for an F-test of the linear contrasts.  'par2lambda' is intended to be used in conjunction with 'contrastTest' or 'findFC'.
“par2lambda流明系数的名称和相应的线性对比假设检验的数字向量的对应列表列表,并返回一个lambda合适的矩阵的线性对比F-检验。 par2lambda“的目的是要在与”contrastTest或findFC一起使用。

'contrastTest' performs an F test for simultaneous tests of linear contrasts using an appropriately specified lambda matrix and an lm object.
“contrastTest执行F检验,同时使用适当指定矩阵的lambda和LM对象的线性对比测试。


用法----------Usage----------


par2lambda(betaNames, betas, coefs)
contrastTest(model, lambda, cVec = NA, p = 0.01)



参数----------Arguments----------

参数:betaNames
A character vector of the names of the coefficients in a linear model.
特征向量的线性模型系数的名字。


参数:betas
A list of vectors of the parameters to be used in the contrasts.
一个列表,在对比中使用的参数向量。


参数:coefs
A list of vectors of numeric coefficients corresponding to betas.
贝塔相应的数字系数的向量列表。


参数:model
An lm object.
一个LM对象。


参数:lambda
A matrix of coefficients in the appropriate order to be multiplied by the estimated coefficients of the lm object, possibly returned from 'par2lambda'.
在适当的顺序将由LM对象的估计系数乘以系数矩阵,可能返回从“par2lambda。


参数:cVec
A vector of constants for testing that the linear contrasts equal something other than zero.  If this is unspecified, it is assumed to be zero.
测试的线性对比相等的东西大于零的常数向量。如果这是不确定的,它被认为是零。


参数:p
The significance level at which to perform the contrast test.
在显着性水平进行对比试验。


值----------Value----------

For par2lambda: A lambda matrix constructed for testing linear contrasts using lm output.
par2lambda:一个lambda矩阵构造测试使用流明输出的线性对比。

For contrastTest:
contrastTest:


参数:test
Returns "REJECT" or "FAIL TO REJECT" based on the result of the test of hypothesis.
返回“拒绝”或“不能拒绝”基础上的假设检验的结果。


参数:Fstat
The F statistic for the test of contrast.
F统计量的对比试验。


参数:pvalue
The corresponding pvalue for the F test.
为F检验的相应pvalue。


参数:cEst
The contrast estimate.
相反的估计。


作者(S)----------Author(s)----------


Denise Scholtens



参见----------See Also----------

lm
lm


举例----------Examples----------



data(estrogen)
ES <- pData(estrogen)[["ES"]]
TIME <- pData(estrogen)[["TIME"]]   
fit <- lm(exprs(estrogen)["40079_at",] ~ ES + TIME + ES*TIME)
betaNames <- names(coef(fit))
betas <- list(c("ESP"),c("ESP","ESP:TIME48h"))
coefs <- list(c(1),c(1,1))
lambda <- par2lambda(betaNames,betas,coefs)
contrastTest(fit,lambda)


转载请注明:出自 生物统计家园网(http://www.biostatistic.net)。


注:
注1:为了方便大家学习,本文档为生物统计家园网机器人LoveR翻译而成,仅供个人R语言学习参考使用,生物统计家园保留版权。
注2:由于是机器人自动翻译,难免有不准确之处,使用时仔细对照中、英文内容进行反复理解,可以帮助R语言的学习。
注3:如遇到不准确之处,请在本贴的后面进行回帖,我们会逐渐进行修订。
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

手机版|小黑屋|生物统计家园 网站价格

GMT+8, 2025-2-9 08:06 , Processed in 0.021526 second(s), 15 queries .

Powered by Discuz! X3.5

© 2001-2024 Discuz! Team.

快速回复 返回顶部 返回列表