WHICH1 | R Documentation |
The WHICH1 function returns the positions in which the vector components (V1) are located in another vector (V2).
WHICH1(V1,V2)
V1 |
Vector initial. |
V2 |
Vector containing replicates of the components of the initial vector. |
This function is used to extract the positions of all the individuals that are part of the selected clusters, in a cluster sampling.
Jorge Alberto Barón Cárdenas <jorgeabaron@correo.unicordoba.edu.co>
Guillermo Martínez Flórez <guillermomartinez@correo.unicordoba.edu.co>
Särndal, C. E., J. H. Wretman, and C. M. Cassel (1992). Foundations of Inference in Survey Sampling. Wiley New York.
Cochran, W. G. (1977). Sampling Techniques, 3ra ed. New York: Wiley.
Thompson, S. K. (1945). Wiley Series in Probability and Statistics, Sampling, 1ra ed. United States of America.
cong<-rep(1:12,each=10)
Argt<-list(NI=12,nI=3)
selection<-CONGL(Argt=Argt,design="MAS")
WHICH1(selection$Ksel,cong)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.