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

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

[复制链接]
发表于 2012-9-30 02:29:33 | 显示全部楼层 |阅读模式
mad(simba)
mad()所属R语言包:simba

                                         Make binary dummy variables out of a factor vector
                                         出的一个因素向量的二元虚拟变量

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

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

Make binary dummy variables out of a factor vector
出的一个因素向量的二元虚拟变量


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


mad(x, red = TRUE)



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

参数:x
A factor vector. Or a vector that is convertible to a factor.  
一个因素向量。或向量转换的一个因素。


参数:red
Logical. Shall redundancy be retained? When a factor variable is broken down to binary dummy variables it is typically not wanted to transfer all levels to 0/1 vectors but to skip the last level because the information is already contained in the sum of the other variables.  
逻辑。应冗余保留吗?当被分解的一个因素变量的二元虚拟变量,它通常是不想要的,把所有水平为0/1向量,而是要跳过的最后一个级别,因为信息已经包含在其他变量的总和。


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

Returns a data.frame with binary data (0/1) with as many (n) rows as x has levels (with red=TRUE) or with n-1 levels when red=FALSE.
二进制数据(0/1),(N)与尽可能多的行为X的水平(red= TRUE)返回一个数据框或具有n-1水平时,red= FALSE。


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



Gerald Jurasinski, <a href="mailto:gerald.jurasinski@uni-rostock.de">gerald.jurasinski@uni-rostock.de</a>




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



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

sim, mps
sim,mps


实例----------Examples----------


## load bernina data[#负载BERNINA数据]
data(bernina)
## have a look at summit$year[看看首脑年]
summits$year
## make binary dummies from that[#二进制假人从]
mad(summits$year)

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


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

使用道具 举报

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

本版积分规则

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

GMT+8, 2025-5-23 22:39 , Processed in 0.047193 second(s), 16 queries .

Powered by Discuz! X3.5

© 2001-2024 Discuz! Team.

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