make.design(AffyExpress)
make.design()所属R语言包:AffyExpress
Create a Design Matrix
创建一个设计矩阵
译者:生物统计家园网 机器人LoveR
描述----------Description----------
Create a design matrix for a linear model
创建一个线性模型的设计矩阵
用法----------Usage----------
make.design(target, cov, int=NULL)
参数----------Arguments----------
参数:target
a data frame contains chip and covaraite information, or experimental phenotypes recorded in eSet and ExpressionSet-derived classes
一个数据框包含芯片和covaraite信息,或在ESET和ExpressionSet派生类中记录的实验表型
参数:cov
a list of 1-n covariates
1-N共变量列表
参数:int
if int=NULL, the interaction effect is not considered; otherwise, use two integers to indicate which covariates are considered for interaction effect. For example, if cov<-c("estrogen","drug","time") and you are considering the interaction between "estrogen" and "time", then you would write int=c(1,3)
如果INT = NULL,互动效应不考虑,否则,使用两个整数来表示协变量交互效应考虑的。例如,如果覆盖<C(“雌激素”,“毒品”,“时间”),你正在考虑的“雌激素”和“时间”之间的相互作用,那么你会写int = C(1 3)
值----------Value----------
a matrix containing design matrix for the linear model
矩阵的线性模型设计矩阵
作者(S)----------Author(s)----------
Xiwei Wu <a href="mailto:xwu@coh.org">xwu@coh.org</a>, Xuejun Arthur Li <a href="mailto:xueli@coh.org">xueli@coh.org</a>
参见----------See Also----------
make.contrast
make.contrast
举例----------Examples----------
target<-data.frame(drug=(c(rep("A",4),rep("B",4),rep("C",4))),
gender=factor(c(rep("M",6),rep("F",6))),
group=factor(rep(c(1,2,3),4)))
#To create a design matrix using "drug", "gender" as covariates[要创建一个设计矩阵,使用“毒品”,“性别”作为协]
design1<-make.design(target, c("drug","gender"))
#To create a design matrix by using "drug","gender","group" as covariates, [要创建设计矩阵,通过使用“毒品”,“性别”,“组”作为协]
#and consider the interaction effect of "drug" and "group"[并考虑“药物”的互动效应和“组”]
design2<-make.design(target, c("drug","gender", "group"), int=c(1,3))
转载请注明:出自 生物统计家园网(http://www.biostatistic.net)。
注:
注1:为了方便大家学习,本文档为生物统计家园网机器人LoveR翻译而成,仅供个人R语言学习参考使用,生物统计家园保留版权。
注2:由于是机器人自动翻译,难免有不准确之处,使用时仔细对照中、英文内容进行反复理解,可以帮助R语言的学习。
注3:如遇到不准确之处,请在本贴的后面进行回帖,我们会逐渐进行修订。
|