conrss: Selecting ranked set sample with a concomitant variable

Description Usage Arguments Details Value References See Also Examples

Description

The con.rss function samples from a target population by using ranked set sampling method. Ranking procedure of X is done by using concomitant variable Y.

Usage

1
con.rss(X,Y,m,r=1,sets=FALSE,concomitant=FALSE)

Arguments

X

A vector of interested variable from target population

Y

A vector of concomitant variable from target population

m

Size of units in each set

r

Number of cycles. (Default by = 1)

sets

logical; if TRUE, ranked set sample is given with ranked sets(see rankedsets)

concomitant

logical; if TRUE, ranked set sample of concomitant variable is given

Details

X and Y must be vectors and also they should be in same length.

Value

corr.coef

the correlation coefficient between X and Y

var.of.interest

the sets of X, which are ranked by Y

concomitant.var.

the ranked sets of Y

sample.x

the obtained ranked set sample of X

sample.y

the obtained ranked set sample of Y

References

McIntyre, G. A. (1952). A method for unbiased selective sampling, using ranked sets. Australian Journal of Agricultural Research, 3(4), 385-390.

Lynne Stokes, S. (1977). Ranked set sampling with concomitant variables. Communications in Statistics-Theory and Methods, 6(12), 1207-1211.

Chen, Z., Bai, Z., & Sinha, B. (2003). Ranked set sampling: theory and applications (Vol. 176). Springer Science & Business Media.

See Also

rss

Examples

1
2
3
4
5
6
7
library("LearnBayes")
mu=c(1,12,2)
Sigma <- matrix(c(1,2,0,2,5,0.5,0,0.5,3), 3, 3)
x <- rmnorm(10000, mu, Sigma)
xx=as.numeric(x[,1])
xy=as.numeric(x[,3])
con.rss(xx, xy, m=3, r=4, sets=TRUE, concomitant=TRUE)

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