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

R语言 SCRT包 pvalue.random()函数中文帮助文档(中英文对照)

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

                                        P-value using the Monte Carlo procedure
                                         P-值的蒙特卡罗程序

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

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

The P-value corresponding to the observed value of the test statistic is obtained by locating this value in the randomization distribution generated by a random sample of all assignment possibilities (the nonexhaustive randomization distribution).
检验统计量的观测值对应的P-值,是通过定位这个值所产生的所有的分配可能性(非穷尽的随机分布)的随机抽样的随机分布。


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


pvalue.random(design, statistic, save = "no", number, limit, data = read.table(file.choose(new = FALSE)), starts = file.choose(new = FALSE))



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

参数:design
Type of single-case design: "AB", "ABA", "ABAB", "CRD" (completely randomized design), "RBD" (randomized block design), "ATD" (alternating treatments design), or "MBD" (multiple-baseline AB design).
单例设计:"AB","ABA","ABAB","CRD"(完全随机设计),"RBD"(随机区组设计的类型),<X >(交替处理设计),或"ATD"(多基线AB设计)。


参数:statistic
Test statistic. For alternation designs, multiple-baseline designs and AB phase designs, there are 3 built-in possibilities: "A-B", "B-A", and "|A-B|", which stand for the (absolute value of the) difference between condition means.  For phase designs with more than 2 phases, 6 more options are available: "PA-PB", "PB-PA", and "|PA-PB|" refer to the (absolute value of the) difference between the means of phase means, and "AA-BB", "BB-AA" and "|AA-BB|" represent the (absolute value of the) difference between the sums of phase means.
检验统计量。交替设计,多基线设计,AB相设计,内置有3个可能性:"A-B","B-A"和"|A-B|",站(绝对值)条件的手段之间的差异。对于超过2个阶段,相设计与6个选项:"PA-PB","PB-PA"和"|PA-PB|"(绝对值)相差手段相是指,和"AA-BB","BB-AA"和"|AA-BB|"(绝对值)相差阶段的手段的总和。


参数:save
Save the randomization distribution to a file (save="yes") or just see it as output in the R console (default: save="no").
的随机分布保存到一个文件中(save="yes"),或只看到它在R控制台输出(默认:save="no"“)。


参数:number
Number of randomizations required.
数随机化需要。


参数:limit
For phase designs: minimum number of observations per phase.  For alternating treatments designs: maximum number of consecutive administrations of the same condition.
相设计:最低每相的观察。交替处理设计的最大数量相同的条件下连续主管部门。


参数:data
File in which the data can be found. Default: a window pops up in which the file can be selected.
的数据文件,在其中可以找到。默认值:弹出一个窗口,在其中可以选择的文件。


参数:starts
Only for multiple baseline designs: location of the file where the possible start points can be found. Default: a window pops up in which the file can be selected.
仅适用于多基线设计文件的位置可能开始点都可以找到。默认值:弹出一个窗口,在其中可以选择的文件。


Details

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

When using the default data argument, a window will pop up to ask in what file the data can be found. This text file containing the data should consist of two columns for single-case phase and alternation designs: the first with the condition labels and the second with the obtained scores. For multiple-baseline designs it should consist of these two columns for EACH unit. This way, each row represents one measurement occasion. It is important not to label the rows or columns.
当使用默认的data的说法,一个窗口会弹出问什么文件数据可以发现。该文本文件包含的数据应包括两列的情况下,单相交替设计:第一个条件标签和第二次所获得的分数。多基线设计,它应该包括两列,每个单元。通过这种方式,每一行代表一个测量场合。重要的是不要标记的行或列。

For multiple baseline designs, when using the default starts argument, second a window pops up in which is asked in what file the possible start points can be found. In this startpoint file, each row should contain all possibilities for one unit, separated by a tab. The rows and columns should not be labeled.
多基线设计,当使用默认starts的说法,第二个窗口弹出,这是问什么文件可以发现可能的起点。在这个起始点文件中,每一行应包含所有的可能性为一个单位,由制表符分隔的。不应被标记的行和列。

When choosing to save the randomization distribution to a file, next a window will pop up (for multiple baseline designs this is the third pop-up window, for all other designs it is the second window) to ask where to save it. This location can be an existing file, as well as a new file that can be created by giving a file name and the extension .txt. In this latter case a confirmation is required ("The file does not exist yet. Create the file?").
当选择保存到一个文件中的随机分布,下一个窗口将自动弹出(多基线设计,这是第三个弹出式窗口,所有其他的设计中,它是第二个窗口),请问哪里可以将它保存。此位置可以是现有的文件,以及可以创建一个新的文件,给出文件名和扩展名。TXT。在后一种情况下则需要进行确认(“文件不存在,创建文件?”)。


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





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

distribution.random to generate the corresponding nonexhaustive randomization distribution.
distribution.random生成相应的非穷尽的随机分布。

observed to calculate the observed test statistic.
observed计算所观察到的检验统计量。

distribution.systematic to generate the exhaustive randomization distribution and  pvalue.systematic to obtain the corresponding p-value.
distribution.systematic来生成详尽的随机分布和pvalue.systematic获得相应的p值。


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


data(ABAB)
pvalue.random(design = "ABAB", statistic = "AA-BB", save = "no", number = 100, limit = 4, data = ABAB)

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


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

使用道具 举报

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

本版积分规则

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

GMT+8, 2024-12-2 04:08 , Processed in 0.021970 second(s), 15 queries .

Powered by Discuz! X3.5

© 2001-2024 Discuz! Team.

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