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

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

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

                                        Class "DCARContControl"
                                         类“DCARContControl”

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

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

Class for controlling contamination in a simulation experiment.  The values  of the contaminated observations will be distributed completely at random  (DCAR), i.e., they will not depend on on the original values.
一类用于控制的模拟实验中的污染。的值受污染的意见完全在随机(DCAR),即,将分发给他们将不依赖于原来的值。


类对象----------Objects from the Class----------

Objects can be created by calls of the form  new("DCARContControl", ...), DCARContControl(...) or  ContControl(..., type="DCAR") (the latter exists mainly for back  compatibility with early draft versions of simFrame).
可以创建对象的形式通过调用new("DCARContControl", ...),DCARContControl(...)或ContControl(..., type="DCAR")(后者存在主要是为了后面的兼容性与早期版本的草案simFrame)。


插槽----------Slots----------




target: Object of class "OptCharacter"; a character  vector specifying specifying the variables (columns) to be contaminated,  or NULL to contaminate all variables (except the additional ones
target:类的对象"OptCharacter";一个字符向量确定指定被污染,或NULL污染的所有变量(除了额外的变量(列)




epsilon: Object of class "numeric" giving the
epsilon:类的对象"numeric"给




grouping: Object of class "character" specifying a  grouping variable (column) to be used for contaminating whole groups  rather than individual observations (the same values are used for all
grouping类的对象"character"指定的一组变量(列)用于污染整个群体,而不是个人的意见(相同的值用于所有




aux: Object of class "character" specifying an  auxiliary variable (column) whose values are used as probability weights
aux:类对象的"character"指定的辅助变量(列)的值被用作概率加权




distribution: Object of class "function" generating  the values of the contamination data, e.g.,  rnorm (the default) or  rmvnorm.  It should take a non-negative  integer as its first argument, giving the number of items to be created,  and return an object that can be coerced to a data.frame,
distribution:类的对象"function"产生的污染数据的值,例如,rnorm(默认值)或rmvnorm。作为第一个参数,而应采取的非负整数,给要创建的项目的数量,并返回一个对象可以强制转换一个data.frame




dots: Object of class "list" containing additional
dots:对象类"list"包含额外的


扩展----------Extends----------

Class "ContControl", directly. Class "VirtualContControl", by class "ContControl", distance 2. Class "OptContControl", by class "ContControl", distance 3.
类"ContControl",直接。类"VirtualContControl"“类”ContControl“,距离2。类"OptContControl"“类”ContControl“,距离3。


Details

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

With this control class, contamination is modeled as a two-step process.  The  first step is to select observations to be contaminated, the second is to  model the distribution of the outliers.  In this case, the values of the  contaminated observations will be generated by the function given by slot  fun and will not depend on on the original values.
该控件类,污染被建模为一个两步的过程。第一步是选择观测到被污染,二是模型的异常值的分布。在这种情况下,将插槽fun和将不依赖于对原始值由给定的功能所产生的受污染的观测值。


访问和修改方法----------Accessor and mutator methods----------

In addition to the accessor and mutator methods for the slots inherited from  "ContControl", the following are available:
除了访问和修改方法继承自"ContControl"的插槽,下面是可供选择:




getDistribution signature(x = "DCARContControl"): get
getDistributionsignature(x = "DCARContControl"):得到




setDistribution signature(x = "DCARContControl"): set
setDistributionsignature(x = "DCARContControl"):设置




getDots signature(x = "DCARContControl"): get slot
getDotssignature(x = "DCARContControl"):得到插槽




setDots signature(x = "DCARContControl"): set slot
setDotssignature(x = "DCARContControl"):设定插槽


方法----------Methods----------

Methods are inherited from "ContControl".
方法继承自"ContControl"。


UML类图----------UML class diagram----------

A slightly simplified UML class diagram of the framework can be found in  Figure 1 of the package vignette An Object-Oriented Framework for  Statistical Simulation: The R Package simFrame.  Use  vignette("simFrame-intro") to view this vignette.
稍微简单的UML类图的框架,可以发现在图1的包小插曲统计模拟方法的一种面向对象的框架:R封装simFrame。使用vignette("simFrame-intro")查看这个小插曲。


注意----------Note----------

The slot grouping was named group prior to version 0.2.   Renaming the slot was necessary since accessor and mutator functions were  introduced in this version and a function named getGroup already  exists.
插槽grouping被命名为group之前的0.2版本。重命名插槽是必要的,因为访问和修改功能在这个版本和一个名为getGroup已经存在的功能进行了介绍。


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


Andreas Alfons



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

Statistical Simulation: The R Package <code>simFrame</code>. Journal of  Statistical Software, 37(3), 1&ndash;36. URL  http://www.jstatsoft.org/v37/i03/.
Package <code>simFrame</code> for Statistical Simulation. In Aivazian, S., Filzmoser,  P. and Kharin, Y. (editors) Computer Data Analysis and Modeling: Complex  Stochastic Data and Systems, volume 2, 178&ndash;181. Minsk. ISBN 978-985-476-848-9.
Multivariate Outlier Detection in Incomplete Survey Data. Survey  Methodology, 34(1), 91&ndash;103.
Data. 57th Session of the International Statistical Institute, Durban.

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

"DARContControl", "ContControl",  "VirtualContControl", contaminate
"DARContControl","ContControl","VirtualContControl",contaminate


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


data(eusilcP)
sam <- draw(eusilcP[, c("id", "eqIncome")], size = 20)
cc <- DCARContControl(target = "eqIncome", epsilon = 0.05,
    dots = list(mean = 5e+05, sd = 10000))
contaminate(sam, cc)

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


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

使用道具 举报

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

本版积分规则

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

GMT+8, 2025-5-24 03:45 , Processed in 0.024684 second(s), 16 queries .

Powered by Discuz! X3.5

© 2001-2024 Discuz! Team.

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