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

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

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

                                        Function mcp in package ‘simctest’
                                         功能MCP包“simctest”

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

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

An algorithm for the computation of the power of Monte Carlo tests with guaranteed precision
蒙特卡洛测试的权力,保证精确计算的算法


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


mcp(genstream,alpha=0.05,delta="adaptive",
cp=0.99,maxeffort=Inf,options = list())



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

参数:genstream
a function that returns a function that returns a random Bernoulli variable (each stream corresponds to a dataset. 0 = (T<t), 1= (T>=t) where t is computed from the dataset and T is a resampled test-statistic from that dataset.)
一个函数,返回一个函数,返回一个随机伯努利可变的(每个流对应于一个数据集。0 =(T <t), 1= (T> = t),其中t为计算出的数据集,T是一个重新取样测试统计该数据集。)


参数:alpha
the level of the test.
级别的测试。


参数:delta
the desired length of confidence interval, or "adaptive" if using adaptive delta. See details.
所需长度的置信区间,或“自适应”如果使用自适应增量。查看详细信息。


参数:maxeffort
maximum effort. Effort is total number of samples taken. Set to finite value if needed (the resulting confidence interval still has the guaranteed coverage probability, but may not be as "short" as desired). Can also interrupt the algorithm during main loop and get a result of class "mcpres".
最大的努力。努力是总的样本数目。如果需要的话(产生的信心的间隔仍然有保证的覆盖概率,但可能不会像“短”所需),设置为有限值。也可以打断算法在主回路和类"mcpres"得到的结果。


参数:cp
the desired coverage probability.
所需的覆盖概率。


参数:options
Additional options. See details
附加选项。查看详细资料


Details

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

options$maxeffort: set to maximum allowable effort.
options$maxeffort:设置允许的最大努力。

options$reports: set to FALSE if onscreen reports are not wanted.
options$reports:设置为FALSE,如果屏幕上的报告不想要的。

options$file: optional file-name to save results to.
options$file:可选的文件名保存结果。

options$pilotn: number of streams in pilot (1000 by default).
options$pilotn:在试点的数据流数目(默认为1000)。

options$pilotmaxsteps: maxsteps in pilot (1000 by default).
options$pilotmaxsteps:maxsteps试点(默认为1000)。

options$gammapilotprop: proportion of error spent on pilot CI (0.1 by default)
options$gammapilotprop:比例用的试点CI的错误(默认为0.1)

options$gammatestprop: proportion of error spent on testing remaining paths (default is 0.1)
options$gammatestprop:错误的比例花费在测试余下的路径(默认为0.1)

options$spendgammatest: spending sequence for the testing procedure on the remaining streams. Must be a non-negative function of integers with positive limit 1 (t/(20+t) by default).
options$spendgammatest:消费序列的测试程序在剩余的流。必须是一个非负整数的函数的正极限(t/(20+t)默认情况下)。

options$eta: internal parameter to the testing procedure on the remaining streams (0.05 by default).
options$eta:内部参数的测试程序,对其余的流(0.05默认情况下)。

options$maxstepsbase: initial maximum number of steps (500 by default)
options$maxstepsbase:初始最大步数(缺省是500)

options$maxstepsinc: multiplier for the maximum number of steps thereafter (1.5 by default).
options$maxstepsinc:乘法器的最大数量(默认为1.5),其后的步骤。

options$maxbatch: multiplier for the maximum number of steps thereafter (200000 by default).
options$maxbatch:乘法器的最大数,其后的步骤(200000默认情况下)。

options$deltamid: adaptive delta function. Describes the length of the confidence interval desired depending on the midpoint of the interval. By default the function requires 0.02 for intervals containing 0.05 or lower or 0.95 or higher, and 0.1 otherwise. If using non-default adaptive delta must also specify epsilon (below).
options$deltamid:自适应增量功能。描述的中点的时间间隔取决于所需的置信区间的长度。默认情况下,该功能需要含有0.05或更低,或0.95或更高,否则和0.1的间隔为0.02。如果使用非默认的自适应增量还必须指定(ε)。

options$epsilon: error probability for each stream. Only set if using non-standard adaptive delta.
options$epsilon:为每个数据流的错误概率。仅设置,如果使用非标准自适应增量。


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

An object of class "mcpres" with slots:
对象的类"mcpres"插槽:


参数:int
confidence interval for power.
置信区间的动力。


参数:cp
coverage probability.
覆盖概率。


参数:beta
Estimate of power.
权力的估计。


参数:N
the number of streams started in main loop (or in pilot if stopped after pilot).
开始在主回路中的流的数目(或中试,如果停止试验后)。


参数:effort
total number of samples generated.
生成的样本总数。


参数:rescount
number of positive and negative outcomes.
数的正面和负面的结果。


参数:truncated
boolean indicating whether procedure was truncated by user-specified maxeffort.
布尔值,指示是否程序被截断用户指定的maxeffort的中。


参数:taccepted
boolean indicating whether the procedure stopped as a result of a hypothesis test or brute force (the confidence interval coverage probability is guaranteed in either case.)
布尔值,表示该过程是否停止作为一个结果,一个假设检验或蛮力(置信区间覆盖概率是保证在任一情况下。)


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


Axel Gandy and Patrick Rubin-Delanchy



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



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

mkdeltamid
mkdeltamid


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


#Example where we know the power should be the level of the test[例如,我们知道电源应该是水平的检测]
genstream <- function(){p <- runif(1); function(N){runif(N) <= p}}

res <- mcp(genstream, alpha=0.05, delta="adaptive", cp=0.99)

#should find confidence interval of length 0.02 centered around 0.05[应围绕0.05的置信区间的长度为0.02]
res

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


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

使用道具 举报

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

本版积分规则

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

GMT+8, 2025-5-23 22:26 , Processed in 0.028424 second(s), 16 queries .

Powered by Discuz! X3.5

© 2001-2024 Discuz! Team.

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