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

R语言 simFrame包 stratify-utilities()函数中文帮助文档(中英文对照)

[复制链接]
发表于 2012-9-30 02:44:39 | 显示全部楼层 |阅读模式
stratify-utilities(simFrame)
stratify-utilities()所属R语言包:simFrame

                                        Utility functions for stratifying data
                                         利用分层数据的功能

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

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

Generic utility functions for stratifying data. These are useful if not all the  information of class "Strata" is necessary.
通用的实用功能分层数据。这些都是有用的,如果不所有信息类"Strata"的是必要的。


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


getStrataLegend(x, design)

getStrataSplit(x, design, USE.NAMES = TRUE)

getStrataTable(x, design)

getStratumSizes(x, design, USE.NAMES = TRUE)

getStratumValues(x, design, split)



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

参数:x
the data.frame to be stratified. For getStratumSizes,  it is also possible to supply a list in which each list element contains  the indices of the observations belonging to the corresponding stratum (as  returned by getStrataSplit).
data.frame进行分层。对于getStratumSizes,它也可以提供一个列表,其中每个列表元素包含属于相应的地层(如经由getStrataSplit)的观测的指数。


参数:design
a character, logical or numeric vector specifying the variables  (columns) to be used for stratification.
一个字符,逻辑或数值向量指定要用于分层的变量(列)。


参数:USE.NAMES
a logical indicating whether information about the strata  should be used as names for the result.
一个逻辑指示关于地层的信息是否应该被用作names为结果。


参数:split
an optional list in which each list element contains the indices  of the observations belonging to the corresponding stratum (as returned by  getStrataSplit).
这是一个可选列表,其中每个列表元素包含索引到相应的层(返回getStrataSplit)的意见。


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

For getStrataLegend, a data.frame describing the strata.
对于getStrataLegend,data.frame描述的地层。

For getStrataSplit, a list in which each element contains the  indices of the observations belonging to the corresponding stratum.
对于getStrataSplit,一个列表,其中每个元素包含指数的属于对应的阶层的观测。

For getStrataTable, a data.frame describing the strata  and containing the stratum sizes.
对于getStrataTable,data.frame描述的地层和地层大小。

For getStratumSizes, a numeric vector of the stratum sizes.
对于getStratumSizes,一个数值向量的地层大小。

For getStratumValues, a numeric vector giving the stratum number for  each observation.
对于getStratumValues,一个数字向量,层数为每个观测。


功能getStrataLegend方法----------Methods for function getStrataLegend----------




x = "data.frame", design = "BasicVector" get a data.frame  describing the strata, according to the variables specified by
=“数据框”,“设计=”BasicVector得到一个data.frame描述的地层,根据所指定的变量


功能getStrataSplit方法----------Methods for function getStrataSplit----------




x = "data.frame", design = "BasicVector" get a list in which each  element contains the indices of the observations belonging to the  corresponding stratum, according to the variables specified by
所述=“数据框”,设计=“BasicVector”得到一个列表,其中每个元素包含的属于对应的阶层的观测的指数,其中,根据所指定的变量


功能getStrataTable的方法。----------Methods for function getStrataTable----------




x = "data.frame", design = "BasicVector" get a data.frame  describing the strata and containing the stratum sizes, according to the
=“数据框”,“设计=”BasicVector得到一个data.frame描述的地层和含有地层大小,根据本


方法功能getStratumSizes的----------Methods for function getStratumSizes----------




x = "list", design = "missing" get the stratum sizes for a list in  which each list element contains the indices of the observations belonging
X =“列表”设计“失踪”地层大小的列表,其中每个列表元素包含指标的意见属于




x = "data.frame", design = "BasicVector" get the stratum sizes of a
X =“数据框”,设计=“BasicVector”的大小的地层


方法功能getStratumValues的----------Methods for function getStratumValues----------




x = "data.frame", design = "BasicVector", split = "list" get the  stratum number for each observation, according to the variables specified  by design.  A previously computed list in which each list element  contains the indices of the observations belonging to the corresponding
所述=“数据框”,设计=“BasicVector”,分割=“列表”对于每个观测得到层数,根据所指定design的变量。先前计算的列表,其中每个列表元素包含观测的指数,其中,属于相应的




x = "data.frame", design = "BasicVector", split = "missing" get the  stratum number for each observation, according to the variables specified
所述=“数据框”,设计=“BasicVector”,分割=“缺失”得到层数为每个观测值,根据指定的变量


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


Andreas Alfons



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

stratify, Strata
stratify,Strata


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


data(eusilcP)

## all data[#所有数据]
getStrataLegend(eusilcP, c("region", "gender"))
getStrataTable(eusilcP, c("region", "gender"))
getStratumSizes(eusilcP, c("region", "gender"))

## small sample[#小样本]
sam <- draw(eusilcP, size = 25)
getStrataSplit(sam, "gender")
getStratumValues(sam, "gender")

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


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

使用道具 举报

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

本版积分规则

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

GMT+8, 2025-5-24 06:12 , Processed in 0.023717 second(s), 16 queries .

Powered by Discuz! X3.5

© 2001-2024 Discuz! Team.

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