runs.test(tseries)
runs.test()所属R语言包:tseries
Runs Test
运行测试
译者:生物统计家园网 机器人LoveR
描述----------Description----------
Computes the runs test for randomness of the dichotomous (binary) data series x.
计算的运行测试随机性的二分(二进制)数据系列x。
用法----------Usage----------
runs.test(x, alternative = c("two.sided", "less", "greater"))
参数----------Arguments----------
参数:x
a dichotomous factor.
一个二分的因素。
参数:alternative
indicates the alternative hypothesis and must be one of "two.sided" (default), "less", or "greater". You can specify just the initial letter.
表示另一种假设,必须有一个"two.sided"(默认),"less"或"greater"。您可以只指定的首字母。
Details
详细信息----------Details----------
This test searches for randomness in the observed data series x by examining the frequency of runs. A "run" is defined as a series of similar responses.
此测试搜索随机性的观测数据系列x:通过检查的频率运行。 A“运行”被定义为一系列类似的反应。
Note, that by using the alternative "less" the null of randomness is tested against some kind of "under-mixing" ("trend"). By using the alternative "greater" the null of randomness is tested against some kind of "over-mixing" ("mean-reversion").
请注意,使用替代"less"空的随机性的测试是针对某种“下混合”(“趋势”)。通过使用替代"greater"空的随机性的测试是针对某种形式的“过度搅拌”(“均值回归”)。
Missing values are not allowed.
遗漏值是不允许的。
值----------Value----------
A list with class "htest" containing the following components:
列表类"htest"包含以下组件:
参数:statistic
the value of the test statistic.
检验统计量的值。
参数:p.value
the p-value of the test.
的p值的测试。
参数:method
a character string indicating what type of test was performed.
一个字符串,表示什么类型的测试进行。
参数:data.name
a character string giving the name of the data.
给出的数据的名称的字符串。
参数:alternative
a character string describing the alternative hypothesis.
一个字符串,描述了另一种假设。
(作者)----------Author(s)----------
A. Trapletti
参考文献----------References----------
Sciences, McGraw-Hill, New York.
Behavioural Sciences, 2nd edn, McGraw-Hill, New York.
实例----------Examples----------
x <- factor(sign(rnorm(100))) # randomness[随机性]
runs.test(x)
x <- factor(rep(c(-1,1),50)) # over-mixing[过度搅拌]
runs.test(x)
转载请注明:出自 生物统计家园网(http://www.biostatistic.net)。
注:
注1:为了方便大家学习,本文档为生物统计家园网机器人LoveR翻译而成,仅供个人R语言学习参考使用,生物统计家园保留版权。
注2:由于是机器人自动翻译,难免有不准确之处,使用时仔细对照中、英文内容进行反复理解,可以帮助R语言的学习。
注3:如遇到不准确之处,请在本贴的后面进行回帖,我们会逐渐进行修订。
|