model.matrix.Pedigree(GeneticsPed)
model.matrix.Pedigree()所属R语言包:GeneticsPed
Model matrix for individuals with and without records
个人和无记录的模型矩阵
译者:生物统计家园网 机器人LoveR
描述----------Description----------
model.matrix for pedigree creates design matrix (Z) for individuals with and without records. Used mainly for educational purposes.
model.matrix系谱和无记录的个人创造设计矩阵(Z)。主要用于教育目的。
用法----------Usage----------
## S3 method for class 'Pedigree'
model.matrix(object, y, id, left=TRUE, names=TRUE,
...)
参数----------Arguments----------
参数:object
Pedigree
系谱
参数:names
logical, should returned matrix have row/colnames; this can be used to get leaner matrix
逻辑,应返回矩阵有行/ colnames;这可以用来得到精简的矩阵
参数:y
numeric, vector of (phenotypic) records
数字,记录向量(表型)
参数:id
vector of subjects for y
矢量y科目
参数:left
logical, bind columns of individuals without records to left (left=TRUE) or right (left=FALSE) side of Z
逻辑,个人的绑定列,没有记录到左(left=TRUE)或右(left=FALSE)Z的一面
参数:...
arguments passed to model.matrix
参数传递model.matrix
值----------Value----------
A model matrix of n * q dimension, where n is number of records in y and q is number of subjects in the
模型矩阵n * q尺寸,其中n记录y和q是在科目数量
作者(S)----------Author(s)----------
Gregor Gorjanc
参见----------See Also----------
Pedigree, relationshipAdditive,
Pedigree,relationshipAdditive
举例----------Examples----------
data(Mrode3.1)
(x <- Pedigree(x=Mrode3.1, subject="calf", ascendant=c("sire", "dam"),
ascendantSex=c("Male", "Female"), sex="sex"))
model.matrix(object=x, y=x$pwg, id=x$calf)
转载请注明:出自 生物统计家园网(http://www.biostatistic.net)。
注:
注1:为了方便大家学习,本文档为生物统计家园网机器人LoveR翻译而成,仅供个人R语言学习参考使用,生物统计家园保留版权。
注2:由于是机器人自动翻译,难免有不准确之处,使用时仔细对照中、英文内容进行反复理解,可以帮助R语言的学习。
注3:如遇到不准确之处,请在本贴的后面进行回帖,我们会逐渐进行修订。
|