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

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

[复制链接]
发表于 2012-9-29 21:44:50 | 显示全部楼层 |阅读模式
buildStrataDF(SamplingStrata)
buildStrataDF()所属R语言包:SamplingStrata

                                         Building the "strata" dataframe containing information on target variables Y's distributions in the different strata, starting from sample data or from a frame
                                         构建“阶层”数据框包含的信息对目标变量Y的分布在不同的阶层,从样本数据中或从一帧开始

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

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

This function allows to build the information regarding strata in the population required by the optimal allocation Bethel algorithm. In order to estimate means and variables for target variables Y's, we need data coming from: 1. a previous round of the survey whose sample we want to plan; 2. sample data from a survey with variables that are proxy to the ones we are interested to; 3. a frame containing values of Y's variables (or proxy variables) for all the population. In all cases, each unit in the dataset must contain auxiliary information (X's variables) and also target variables Y's (or proxy variables) values: under these conditions it is possible  to build the dataframe "strata", containing information on the distribution of Y's in the different strata  (namely, means and standard errors), together with information on strata (total population,  if it is to be censused or not, the cost per single interview). If the information is contained in a sample dataset, a variable named "WEIGHT" is expected to be  present. In case of a frame, no such variable is given, and the fucntion will define a WEIGHT variable for each unit, whose value is always "1". Missing values for each Y variable will not be taken into account in the computation of means and standard  deviations (in any case, NA's can be present in the dataset). The dataframe "strata" is written to an external file (tab delimited, extension "txt"), and will be used as an input by optimizeStrata.
此功能允许建立阶层在伯特利算法的优化配置所需的人口有关的信息。为了估计目标变量Y的方法和变量,我们所需要的数据:1。以前的一轮调查的示例中,我们要规划2。从调查样本数据与代理的那些变量,我们有兴趣; 3。一帧包含值Y的变量(或代理变量)的所有人口。在所有情况下,DataSet中的每个单位必须包含辅助信息(X的变量)和也的目标变量Ÿ的(或代理变量)值:在这些条件下建立的数据框“阶层”,包含信息的分布情况Y的不同的阶层(即均值和标准误差),再加上地层信息(总人口,如果它是普查与否,每一次面谈的成本)。如果信息中包含的样本数据集,变量名为“WEIGHT”预计将出席。在一帧的情况下,没有这样的变量给出,和温控功能将定义一个重量为每个单元,其始终为“1”的值的变量。每个Y变量的遗漏值将不会被考虑到均值和标准差的计算(在任何情况下,NA的数据集)。数据框的“阶层”被写入到外部文件(制表符分隔,扩展名为“txt”),并将用作输入optimizeStrata。


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


buildStrataDF(dataset)



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

参数:dataset
This is the name of the dataframe containing the sampling data, or frame data.  It is strictly required that auxiliary information is organised in variables named  as X1, X2, ... , Xm (there should be at least one of them) and the target variables  are denoted by Y1, Y2, ... , Yn. In addition, in case of sample data, a variable named 'WEIGHT' must be present in the dataframe,  containing   the weigths associated to each sampling unit  
这是含有的取样数据,或帧数据的名称的数据框。它是有严格要求的辅助信息是组织的变量命名为X1,X2,... ,Xm的(应该有它们中的至少一个)和目标变量被表示为Y1,Y2,... YN。另外,在样本数据的情况下,必须是一个变量名为重量中存在的数据框,包含相关联的每个采样单元weigths


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

A dataframe containing strata
一个数据框阶层


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



Giulio Barcaroli




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



data(swissframe)
strata <- buildStrataDF(swissframe)
head(strata)


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


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

使用道具 举报

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

本版积分规则

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

GMT+8, 2024-11-29 04:46 , Processed in 0.021095 second(s), 16 queries .

Powered by Discuz! X3.5

© 2001-2024 Discuz! Team.

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