# NOT RUN {
## Vectors of temporal inclusion probabilities with 3 waves ##
pik1 <- c(0.2,0.3,0.5) # of a first unit
pik2 <- c(0.1,0.4,0.5) # of a second unit
## Find the systematic sampling designs of pik1 and pik2 ##
design1 <- SystematicDesign(pik1, EPS = 1e-6)
design2 <- SystematicDesign(pik2, EPS = 1e-6)
## The time we want to take a decision ##
t <- 2
d <- rep(0,3)
d[t] <- 1
## Update probabilities to take a decision at wave t=2 ##
TemporalPivot(design1, design2, d)
# }
Run the code above in your browser using DataLab