signtest1-help: Sign Test with RSS

Description Usage Arguments Details Value References Examples

Description

It performs the RSS version of the sign test given by Chen et. al.(2003).

Usage

1
  sign1testrss(sampledata,m,r,median0,alpha=0.05,alternative="two.sided")

Arguments

sampledata

An obtained ranked set sample

m

Number of units in each set (set size)

r

Number of cycles

median0

The median value in the null hypothesis

alpha

The significance level (by default = 0.05).

alternative

Character string defining the alternative hypothesis, one of "two.sided", "less" or "greater" (by default = "two.sided")

Details

The test statistics and an approximate confidence intervals are constructed by using the normal approximation. Also note that, we assume that the ranking mechanism in the RSS is consistent. For more details please refer to Chen et. al.(2003, pg. 103-115).

Value

median

The median value of the given set

sign.test.stat

The value of the RSS sign test statistic

C.I.

the confidence interval for median

z.test

the z statistic for test

p.value

the p value for the test

References

Chen, Z., Bai Z., Sinha B. K. (2003). Ranked Set Sampling: Theory and Application. New York: Springer.

Examples

1
2
3
  data=rnorm(10000,0,1)
  samplerss=as.numeric(rss(data,m=3,r=12))
  sign1testrss(samplerss,m=3,r=12,median0=0.5)

RSSampling documentation built on May 2, 2019, 4:28 a.m.