# NOT RUN {
set.seed(1)
## Matrix of 8 auxilary variables and 10 units with lot of 0s ##
X <- matrix(c(0.6,0.0,0.0,0.0,
0.1,0.0,0.1,0.0,
0.3,0.0,0.0,0.3,
0.0,0.3,0.0,0.3,
0.0,0.6,0.0,0.0,
0.0,0.1,0.1,0.0), ncol = 4, byrow = TRUE)
## Inclusion probabilities with 10 units ##
pik <- c(0.60,0.10,0.30,0.30,0.60,0.10)
## parameter t ##
t <- 2
## Cube method ##
s <- ReducedSamplecube(X, pik, redux = TRUE, t)
s
# }
Run the code above in your browser using DataLab