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

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

[复制链接]
发表于 2012-9-30 09:13:09 | 显示全部楼层 |阅读模式
getCat(simPopulation)
getCat()所属R语言包:simPopulation

                                         Categorize (semi-)continuous variables
                                         分类(半)连续变量

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

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

Categorize continuous or semi-continuous variables.  This is a utility  function that is useful for writing custom wrapper functions such as  simEUSILC.
连续或半连续的变量进行分类。这是一个实用的功能,编写自定义的包装功能,如simEUSILC是很有用的。


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


getCat(x, breaks, zeros = TRUE, right = FALSE)



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

参数:x
a numeric vector to be categorized.
一个数值向量进行分类。


参数:breaks
a numeric vector of two or more break points.
一个数值向量中的两个或更多个中断点。


参数:zeros
a logical indicating whether x is semi-continuous, i.e.,  contains a considerable amount of zeros.  See “Details” on how this  affects the behavior of the function.
一个逻辑指示是否x是半连续的,即,包含了相当数量的零。请参阅“详细信息”,这将如何影响行为的功能。


参数:right
logical; if zeros is not TRUE, this indicates  whether the intervals should be closed on the right (and open on the left)  or vice versa.
逻辑,如果zeros是不TRUE,这表明是否应关闭的时间间隔上的权利(在左侧),反之亦然。


Details

详细信息----------Details----------

If zeros is TRUE, 0 is added to the break points and treated as  its own factor level.  Consequently, intervals for negative values are  left-closed and right-open, whereas intervals for positive values are  left-open and right-closed.
如果zerosTRUE,0被添加到中断点和视为其自己因子水平。因此,时间间隔为负值是左闭右开,而正面的价值观是左开和右封闭的时间间隔。


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

A factor containing the categories.
Afactor包含的类别。


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



Andreas Alfons




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

getBreaks, cut
getBreaks,cut


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


data(eusilcS)

## semi-continuous variable[#半连续变量]
breaks <- getBreaks(eusilcS$netIncome,
    weights=eusilcS$rb050, equidist = FALSE)
netIncomeCat <- getCat(eusilcS$netIncome, breaks)
summary(netIncomeCat)

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


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

使用道具 举报

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

本版积分规则

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

GMT+8, 2025-5-24 21:09 , Processed in 0.020621 second(s), 16 queries .

Powered by Discuz! X3.5

© 2001-2024 Discuz! Team.

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