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

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

[复制链接]
发表于 2012-9-29 23:24:24 | 显示全部楼层 |阅读模式
primarySuppression(sdcTable)
primarySuppression()所属R语言包:sdcTable

                                        perform primary suppression in <a href="sdcProblem-class.html">sdcProblem-class</a>-objects
                                         <a href="sdcProblem-class.html"> sdcProblem级</ a>的对象主要抑制

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

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

Function primarySuppression is used to identify and suppress primary sensitive table cells in sdcProblem-class objects. Argument type allows to select a rule that should be used to identify primary sensitive cells. At the moment it is possible to identify and suppress sensitive table cells using the frequency-rule, the nk-dominance rule and the p-percent rule.
功能primarySuppressionsdcProblem-class对象主要敏感的表格单元格中用于识别和抑制。参数type可以选择的规则应该被用来确定主敏感的单元。目前,它是可能的识别和压制敏感的表格单元格使用频率规则,的NK优势规则和P-%规则。


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


  primarySuppression(object, type, ...)



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

参数:object
a sdcProblem-class object
sdcProblem-class对象


参数:type
character vector of length 1 defining the primary suppression rule. Allowed types are:   
字符长度为1的向量定义的主要抑制规则。允许的类型是:

freq: apply frequency rule with parameters maxN and allowZeros  
freq:应用频率规则与参数maxN和allowZeros

nk: apply nk-dominance rule with parameters n, k and numVarInd  
nk:适用于NK显性规则与参数n,k和numVarInd

p: apply p-percent rule with parameters p and numVarInd  </ul>
p:适用于P-%的规则与参数p和numVarInd</ UL>


参数:...
parameters used in the identification of primary sensitive cells. Parameters that can be modified|changed are:   
主要敏感单元识别中使用的参数。 ,可以修改|改变的参数是:

maxN: numeric vector of length 1 used when applying the frequency rule. All cells having counts <= maxN are set as primary suppressed. The default value of maxN is 3.  
maxN:数字矢量的长度为1时使用的频率规则。所有的单元计数<=maxN设置为主要抑制。 maxN的默认值是3。

allowZeros: logical vector of length 1 specifying if empty cells (count==0) should be considered sensitive when using the frequency rule. The default value of allowZeros is 'FALSE' so that empty cells are not considered primary sensitive by default.  
allowZeros:逻辑向量长度为1的规定,如果空单元格(== 0)应被视为敏感时使用的频率规则。 allowZeros的默认值是FALSE,所以默认情况下,空单元格不被视为主要的敏感。

p: numeric vector of length 1 specifying parameter p that is used when applying the p-percent rule with default value of 80.  
p:长度为1的指定参数的数值向量p申请时所使用的p%的规则,默认值80。

n: numeric vector of length 1 specifying parameter n that is used when applying the nk-dominance rule. Parameter n is set to 2 by default.  
n:长度为1的指定参数的数值向量n时所使用的应用NK-主导地位规则。参数n默认设置为2。

k: numeric vector of length 1 specifying parameter k that is used when applying the nk-dominance rule. Parameter n is set to 85 by default.  
k:长度为1的指定参数的数值向量k时所使用的应用NK-主导地位规则。参数n默认情况下设置为85。

numVarInd: numeric vector of length 1 specifying the index of the numerical variable that should be used to identify cells that are dominated by 2 (p-percent rule) or n (nk-dominance)-rule. If type is either 'nk' or 'p' it is mandatory to specify p.  </ul>
numVarInd:数值向量长度为1的指定的索引的数值变量,应被用来识别由2(对%规则)或n(nk个显性)-规则主导的单元。如果type是“NK”或“P”,它是强制性的指定P。 </ ul>


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

a sdcProblem-class object
sdcProblem-class对象


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

the nk-dominance rule and the p-percent rule can only be applied if micro data have been used as input data to function makeProblem.
nk个显性规则和在p%规则只能应用于,如果微数据已被使用作为输入数据的功能makeProblem。


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



Bernhard Meindl <a href="mailto:bernhard.meindl@statistik.gv.at">bernhard.meindl@statistik.gv.at</a>




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


## Not run: [#不运行:]
# load micro data[加载微观数据]
sp <- searchpaths()
fn <- paste(sp[grep("sdcTable", sp)], "/data/microData1.RData", sep="")
microData <- get(load(fn))

# load problem (as it was created in the example in \code{\link{makeProblem}})[负载问题(因为它是在示例中创建\代码\的链接{makeProblem}})]
fn <- paste(sp[grep("sdcTable", sp)], "/data/problem.RData", sep="")
problem <- get(load(fn))

# we have a look at the table[我们有一个看看表]
print(table(microData))

# cell with region=='A' and gender=='female' has 2 units contributing to it[单元和区域==A和性别==女的有2个单位,促进]
# this cell should be considered senstive![这单元应考虑灵敏的!]
problem <- primarySuppression(problem, type='freq', maxN=3)

# looking at anonymization states[在匿名的状态]
print(table(getInfo(problem, type='sdcStatus')))

# we see that exactly one cell is primary suppressed (sdcStatus=='u') and[我们看到,一个单元是主要抑制:(sdcStatus ==U)]
# the remaining cells are possible candidates for secondary suppression ('s')[剩余的单元是可能的候选人进行二次抑制(S)]

## End(Not run)[#(不执行)]

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


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

使用道具 举报

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

本版积分规则

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

GMT+8, 2024-11-30 02:30 , Processed in 0.024970 second(s), 16 queries .

Powered by Discuz! X3.5

© 2001-2024 Discuz! Team.

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