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

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

  [复制链接]
发表于 2012-9-30 20:34:39 | 显示全部楼层 |阅读模式
surveyoptions(survey)
surveyoptions()所属R语言包:survey

                                        Options for the survey package
                                         调查包的选项

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

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

This help page documents the options that control the behaviour of the survey package.
这帮助页文件的选项控制行为的调查包。


Details

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

All the options for the survey package have names beginning with "survey".  Four of them control standard error estimation.
调查包中的所有的选项有“调查”开头的名字。他们控制的4个标准误差估计。

options("survey.replicates.mse") controls the default in svrepdesign and as.svrepdesign for computing variances. When options("survey.replicates.mse") is TRUE, the default is to create replicate weight designs that compute variances centered at the point estimate, rather than at the mean of the replicates.  The option can be overridden by specifying the mse argument explicitly in svrepdesign and as.svrepdesign. The default is FALSE.
options("survey.replicates.mse")控制默认情况下,在svrepdesign和as.svrepdesign的计算差异的。当options("survey.replicates.mse")是TRUE,默认的是创建复制重设计,计算差异的点估计值,而不是集中在复制的平均。该选项可以覆盖mse指定svrepdesign和as.svrepdesign参数明确。默认的FALSE。

When options("survey.ultimate.cluster") is TRUE, standard error estimation is based on independence of PSUs at the first stage of sampling, without using any information about subsequent stages. When FALSE, finite population corrections and variances are estimated recursively. See svyrecvar for more information. This option makes no difference unless first-stage finite population corrections are specified, in which case setting the option to TRUE gives the wrong answer for a multistage study. The only reason to use TRUE is for compatibility with other software that gives the wrong answer.
当options("survey.ultimate.cluster")是TRUE,标准误差估计是基于抽样第一阶段的独立的事业单位,不使用任何有关的后续阶段。当FALSE,有限总体修正和方差估计递归。见svyrecvar更多信息。此选项没有什么区别,除非第一阶段的有限总体修正规定,在这种情况下,选项设置为TRUE多级研究给出了错误的答案。使用TRUE的唯一原因是给出了错误的答案与其他软件的兼容性。

Handling of strata with a single PSU that are not certainty PSUs is controlled by options("survey.lonely.psu"). The default setting is "fail", which gives an error. Use "remove" to ignore that PSU for variance computation, "adjust" to center the stratum at the population mean rather than the stratum mean, and "average" to replace the variance contribution of the stratum by the average variance contribution across strata. As of version 3.4-2 as.svrepdesign also uses this option.
处理地层的不确定性PSU的控制options("survey.lonely.psu")的单电源。默认设置为"fail",它给出了一个错误。使用"remove"忽略,PSU的方差计算,"adjust"中心的阶层在人口,而不是阶层平均的意思,和"average"更换地层的平均方差贡献跨阶层的方差贡献。版本3.4-2 as.svrepdesign还使用此选项。

The variance formulas for domain estimation give well-defined, positive results when a stratum contains only one PSU with observations in the domain, but are not unbiased.  If options("survey.adjust.domain.lonely") is TRUE and options("survey.lonely.psu") is "average" or "adjust" the same adjustment for lonely PSUs will be used within a domain. Note that this adjustment is not available for replicate-weight designs, nor (currently) for raked, post-stratified, or calibrated designs.
域估计的方差公式定义良好的,积极的成果时,地层中只包含一个电源域的观察,但并不公正。 options("survey.adjust.domain.lonely")如果是TRUE和options("survey.lonely.psu")是"average"或"adjust"寂寞事业单位相同的调整将用于在一个域中。请注意,此调整是没有可用于复制权重的设计,也不是(目前)为倾斜的,分层后,或校准的设计。

The fourth option is options("survey.want.obsolete"). This controls the warnings about using the deprecated pre-2.9.0 survey design objects.
第四个选项是options("survey.want.obsolete")。控制的警告使用过时的2.9.0调查设计对象。

The behaviour of replicate-weight designs for self-representing strata is controlled by options("survey.drop.replicates"). When TRUE, various optimizations are used that take advantage of the fact that these strata do not contribute to the variance. The only reason ever to use FALSE is if there is a bug in the code for these optimizations.
复制,重设计,自我代表的阶层的行为是由options("survey.drop.replicates")。当TRUE,使用各种优化利用的事实,不利于这些阶层的方差。唯一的原因,曾经使用FALSE是,如果有这些优化的代码中的错误。

The fifth option controls the use of multiple processors with the multicore package. This option should not affect the values computed by any of the survey functions.  If TRUE, all functions that are able to use multiple processors will do so by default. Using multiple processors may speed up calculations, but need not, especially if the computer is short on memory. The best strategy is probably to experiment with explicitly requesting multicore=TRUE in functions that support it, to see if there is an increase in speed before setting the global option.
第五个选项控制使用多个处理器multicore包。这个选项应该不会影响调查的任何功能计算出的值。如果TRUE,能够使用多个处理器的所有功能,将这样做,默认情况下。使用多个处理器可以加快计算的,但不是必须,特别是如果计算机的内存。最好的策略是可能明确要求multicore=TRUE的功能,支持它,看看是否有增加的速度前设置全局选项的实验。

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


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

使用道具 举报

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

本版积分规则

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

GMT+8, 2025-4-5 02:13 , Processed in 0.024541 second(s), 16 queries .

Powered by Discuz! X3.5

© 2001-2024 Discuz! Team.

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