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

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

[复制链接]
发表于 2012-2-25 23:34:27 | 显示全部楼层 |阅读模式
mlogreg(logicFS)
mlogreg()所属R语言包:logicFS

                                        Multinomial Logic Regression
                                         多项式逻辑回归

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

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

Performs a multinomial logic regression for a nominal response by fitting a logic regression model (with logit as link function) for each of the levels of the response except for the level with the smallest value which is used as reference category.
执行多项逻辑回归的装修,除了最小的值被用来作为参考类别的水平逻辑回归模型(与罗吉特作为链接的功能)每个响应级别的名义响应。


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


## S3 method for class 'formula'[类formula的方法]
mlogreg(formula, data, recdom = TRUE, ...)

## Default S3 method:[默认方法]
mlogreg(x, y, ntrees = 1, nleaves = 8, anneal.control = logreg.anneal.control(),
    select = 1, rand = NA, ...)



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

参数:formula
an object of class formula describing the model that should be fitted.
类formula描述模型,应配备的对象。


参数:data
a data frame containing the variables in the model. Each column of data must correspond to a binary variable (coded by 0 and 1) or a factor (for details on factors, see recdom) except for the column comprising the response, and each row to an observation. The response must be a categorical variable with less than 10 levels. This response can be either a factor or of type numeric or  character.
一个数据框包含在模型中的变量。每个data列必须对应一个二进制的变量(由0和1的编码)或除列组成的响应因子(的因素的详细信息,请参阅recdom),每行一个观察。响应必须是少于10个级别的分类变量。这种反应可以是任何一个因素或类型numeric的或character。


参数:recdom
a logical value or vector of length ncol(data) comprising whether a SNP should be transformed into two binary dummy variables coding for a recessive and a dominant effect. If TRUE (logical value), then all factors (variables) with three levels will be coded by two dummy variables as described in make.snp.dummy. Each level of each of the other factors  (also factors specifying a SNP that shows only two genotypes) is coded by one indicator variable.  If FALSE (logical value), each level of each factor is coded by an indicator variable. If recdom is a logical vector, all factors corresponding to an entry in recdom that is TRUE are assumed to be SNPs and transformed into the two binary variables described above. Each variable that corresponds to an entry of recdom that is TRUE (no matter whether recdom is a vector or a value) must be coded by the integers 1 (coding for the homozygous reference genotype), 2 (heterozygous),  and 3 (homozygous variant).
一个逻辑值或长度的向量ncol(data)包括是否SNP应转化成二元虚拟变量编码的隐性和显性效应。如果TRUE(逻辑值),然后与所有三个层次的因素(变量)将被编码由两个虚拟变量make.snp.dummy。每个每个级别的其他因素(也指定一个SNP显示只有两种基因型的因素)进行编码由一个指标变量。如果FALSE(逻辑值),每个因素的每个级别的指标变量进行编码。 recdom如果是一个逻辑向量,在进入相应的所有因素recdom是TRUE被假定为单核苷酸多态性,并转化成二进制以上所述的两个变量。进入每个变量对应recdom是TRUE(无论是否recdom是一个向量或值)必须由整数1(纯合子参考基因型编码编码),2(杂合子)和3个(合子变种)。


参数:x
a matrix consisting of 0's and 1's. Each column must correspond to a binary variable and each row to an observation.
0和1组成的矩阵。每一列必须对应一个二进制变量和每个行观察。


参数:y
either a factor or a numeric or character vector specifying the values of the response. The length of y must be equal to the number of rows of x.
任何一个因素或一个数字或字符向量指定的响应值。 y长度必须等于x行的数量。


参数:ntrees
an integer indicating how many trees should be used in the logic regression models. For details, see logreg in the LogicReg package.
一个整数,表示应在逻辑回归模型使用多少树木。有关详情,请参阅logregLogicReg package的。


参数:nleaves
a numeric value specifying the maximum number of leaves used in all trees combined. See the help page of the function logreg in the LogicReg package for details.
一个数值,指定用于所有的树木叶片的最大数量。看到的功能的帮助页面logregLogicReg包细节。


参数:anneal.control
a list containing the parameters for simulated annealing. For details, see the help page of logreg.anneal.control in the LogicReg package.
一个列表,其中包含模拟退火参数。有关详情,请参阅在logreg.anneal.control包LogicReg帮助页。


参数:select
numeric value. Either 0 for a stepwise greedy selection (corresponds to select = 6 in logreg) or 1 for simulated annealing.
数值。无论是对一个循序渐进的贪婪选择0(对应select = 6logreg)或模拟退火1。


参数:rand
numeric value. If specified, the random number generator will be set into a reproducible state.
数值。如果指定,随机数发生器将被设置成一个可重复的状态。


参数:...
for the formula method, optional parameters to be passed to the low level function mlogreg.default. Otherwise, ignored.
为formula方法,可选的参数被传递到低级别功能mlogreg.default。否则,忽略。


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

An object of class mlogreg composed of
一个类的对象mlogreg组成


参数:model
a list containing the logic regression models,
一个列表,其中包含的逻辑回归模型,


参数:data
a matrix containing the binary predictors,
包含二进制矩阵预测,


参数:cl
a vector comprising the class labels,
组成一个向量类的标签,


参数:ntrees
a numeric value naming the maximum number of trees used in the logic regressions,
在逻辑回归的树木命名的最大数量的数值,


参数:nleaves
a numeric value comprising the maximum number of leaves used in the logic regressions,
包括在逻辑回归用于叶的最大数量的数值,


参数:fast
a logical value specifying whether the faster search algorithm, i.e.\ the greedy search, has been used.  
一个逻辑值,指明是否更快的搜索算法,即\贪婪搜索,已使用。


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


Holger Schwender, <a href="mailto:holger.schwender@udo.edu">holger.schwender@udo.edu</a>



参考文献----------References----------

Biostatistics, 12, 18-32.

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

predict.mlogreg, logic.bagging, logicFS
predict.mlogreg,logic.bagging,logicFS

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


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

使用道具 举报

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

本版积分规则

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

GMT+8, 2025-2-4 22:06 , Processed in 0.030792 second(s), 15 queries .

Powered by Discuz! X3.5

© 2001-2024 Discuz! Team.

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