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

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

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

                                        Accessor and mutator functions for objects
                                         对象的访问和修改功能

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

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

Get values of slots of objects via accessor functions and set values via  mutator functions.  If no mutator methods are available, the slots of the  corresponding objects are not supposed to be changed by the user.
插槽的对象的值通过访问器函数和赋值函数功能的设定值通过。如果没有mutator方法是可用的,相应的对象的时隙不应该由用户改变。


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


getAdd(x)

getAux(x)
setAux(x, aux)

getCall(x, ...)

getCollect(x)
setCollect(x, collect)

getColnames(x)
setColnames(x, colnames)

getContControl(x)
setContControl(x, contControl)

getControl(x)

getDataControl(x)

getDesign(x)
setDesign(x, design)

getDistribution(x)
setDistribution(x, distribution)

getDots(x, ...)
setDots(x, dots, ...)

## S4 method for signature 'TwoStageControl'
getDots(x, stage = NULL)
## S4 method for signature 'TwoStageControl'
setDots(x, dots, stage = NULL)

getEpsilon(x)
setEpsilon(x, epsilon)

getFun(x, ...)
setFun(x, fun, ...)

## S4 method for signature 'TwoStageControl'
getFun(x, stage = NULL)
## S4 method for signature 'TwoStageControl'
setFun(x, fun, stage = NULL)

getGrouping(x)
setGrouping(x, grouping)

getIndices(x)

getIntoContamination(x)
setIntoContamination(x, intoContamination)

getK(x)
setK(x, k)

getLegend(x)

getNAControl(x)
setNAControl(x, NAControl)

getNArate(x)
setNArate(x, NArate)

getNr(x)

getNrep(x)

getProb(x, ...)
setProb(x, prob, ...)

## S4 method for signature 'TwoStageControl'
getProb(x, stage = NULL)
## S4 method for signature 'TwoStageControl'
setProb(x, prob, stage = NULL)

getSAE(x)
setSAE(x, SAE)

getSampleControl(x)

getSeed(x)

getSize(x, ...)
setSize(x, size, ...)

## S4 method for signature 'TwoStageControl'
getSize(x, stage = NULL)
## S4 method for signature 'TwoStageControl'
setSize(x, size, stage = NULL)

getSplit(x)

getTarget(x)
setTarget(x, target)

getValues(x)



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

参数:x
an object.
一个对象。


参数:aux
a character string specifying an auxiliary variable (see  "ContControl" and "NAControl").
一个字符串指定的辅助变量(见"ContControl"和"NAControl")。


参数:collect
a logical indicating whether groups should be collected after  sampling individuals or sampled directly (see  "SampleControl").
逻辑群是否应该被收集采样后的个人或直接采样(见"SampleControl"“)。


参数:colnames
a character vector specifying column names (see  "DataControl").
字符向量指定列名(见"DataControl"“)。


参数:contControl
an object of class "ContControl" (see  "SimControl").
类的一个对象"ContControl"(见"SimControl")。


参数:design
a character vector specifying columns to be used for  stratification (see "SampleControl",  "TwoStageControl" and  "SimControl").
字符向量指定列用于分层(见"SampleControl","TwoStageControl"和"SimControl")。


参数:distribution
a function generating data (see  "DataControl" and  "DCARContControl").
函数产生的数据(见"DataControl"和"DCARContControl")。


参数:dots
additional arguments to be passed to a function (see  "DataControl", "DARContControl",  "DCARContControl",  "SampleControl",  "TwoStageControl" and  "SimControl").
额外的参数传递给函数(见"DataControl","DARContControl","DCARContControl","SampleControl","TwoStageControl"和"SimControl")。


参数:epsilon
a numeric vector giving contamination levels (see  "VirtualContControl").
给一个数值向量的污染水平(见"VirtualContControl"“)。


参数:fun
a function (see  "DARContControl",  "SampleControl",  "TwoStageControl" and  "SimControl").
一个函数(见"DARContControl","SampleControl","TwoStageControl"和"SimControl")。


参数:grouping
a character string specifying a grouping variable (see  "ContControl", "NAControl",  "SampleControl" and  "TwoStageControl").
一个字符串指定的一组变量(见"ContControl","NAControl","SampleControl"和"TwoStageControl")。


参数:intoContamination
a logical indicating whether missing values should  also be inserted into contaminated observations (see  "NAControl").
逻辑指示是否缺少值也应该被插入到受污染的意见(见"NAControl"“)。


参数:k
a single positive integer giving the number of samples to be set up  (see "VirtualSampleControl").
一个正整数,成立(见"VirtualSampleControl"的样本数)。


参数:NAControl
an object of class "NAControl" (see  "SimControl").
类的一个对象"NAControl"(见"SimControl")。


参数:NArate
a numeric vector or matrix giving missing value rates (see  "VirtualNAControl").
一个数值向量或矩阵给出缺失值率(见"VirtualNAControl"“)。


参数:prob
a numeric vector giving probability weights (see  "SampleControl" and  "TwoStageControl").
一个数字矢量,概率权重(见"SampleControl"和"TwoStageControl"“)。


参数:SAE
a logical indicating whether small area estimation will be used in  the simulation experiment (see "SimControl").
指示是否将被用于小区域估计的模拟实验中(见逻辑"SimControl")。


参数:size
a non-negative integer or a vector of non-negative integers (see  "DataControl", "SampleControl"  and "TwoStageControl").
一个非负的整数或者是一个非负整数向量(见"DataControl","SampleControl"和"TwoStageControl")。


参数:stage
optional integer; for certain slots of  "TwoStageControl", this allows to access or modify  only the list component for the specified stage.  Use 1 for the  first stage and 2 for the second stage.
可选的整数,一定插槽"TwoStageControl",这允许访问或修改列表组件指定的阶段。使用1的第一阶段和2的第二阶段。


参数:target
a character vector specifying target columns (see  "VirtualContControl" and  "VirtualNAControl").
字符向量指定目标列(见"VirtualContControl"和"VirtualNAControl")。


参数:...
only used to allow for the stage argument in accessor and  mutator methods for "TwoStageControl". Otherwise no  additional arguments are available.
只允许stage访问和修改方法"TwoStageControl"参数。否则,没有额外的参数。


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

For accessor functions, the corresponding slot of x is returned.
访问函数,返回相应的插槽x。

For mutator functions, the corresponding slot of x is replaced.
对于赋值函数功能,相应的插槽x被替换。


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


方法的功能getAux和setAux----------Methods for functions getAux and setAux----------


功能getcall的方法----------Methods for function getCall----------


为功能getCollect和setCollect方法----------Methods for functions getCollect and setCollect----------


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


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


方法的功能getContControl和setContControl----------Methods for functions getContControl and setContControl----------


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


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


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


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


为功能getDistribution和setDistribution方法----------Methods for functions getDistribution and setDistribution----------


方法为功能getDots和setDots中----------Methods for functions getDots and setDots----------


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


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


方法的功能getFun和setFun----------Methods for functions getFun and setFun----------


功能getGrouping方法和setGrouping----------Methods for functions getGrouping and setGrouping----------


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


为功能getIntoContamination和setIntoContamination方法----------Methods for functions getIntoContamination and setIntoContamination----------


方法的功能getK和setK----------Methods for functions getK and setK----------


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


方法的功能getNAControl和setNAControl----------Methods for functions getNAControl and setNAControl----------


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


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


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


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


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


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


方法的功能getSAE和setSAE----------Methods for functions getSAE and setSAE----------


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


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


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


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


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


为功能getTarget和setTarget方法----------Methods for functions getTarget and setTarget----------


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


(作者)----------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/.

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


nc <- NAControl(NArate = 0.05)
getNArate(nc)

setNArate(nc, c(0.01, 0.03, 0.05, 0.07, 0.09))
getNArate(nc)



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


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

使用道具 举报

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

本版积分规则

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

GMT+8, 2025-5-24 07:17 , Processed in 0.019380 second(s), 15 queries .

Powered by Discuz! X3.5

© 2001-2024 Discuz! Team.

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