## Not run:
#
# V0 <- 100 # V0 = number of voters (not votes)
# bump(V0, 6, 3, 0, 0) # no bump
# bump(V0, 6, 3, 0, 1) # 1-up
# bump(V0, 6, 3, 0, 2) # 2-up
# bump(V0, 6, 3, 0, 3) # 3-up
#
# V1 <- c(30, 40, 50, 50, 60, 70)
# bump(V1, 6, 3, 1, 0) # bump down
# bump(V1, 6, 3, 1, 1) # no bump
# bump(V1, 6, 3, 1, 2) # 1-up
# bump(V1, 6, 3, 1, 3) # 2-up
#
# cbind(
# bump(V1, 6, 3, 1, 2, "popular"),
# bump(V1, 6, 3, 1, 2, "even")
# )
#
#
#
#
#
# data(cookie)
# (out <- spectral(cookie$freq, 6, 3, cookie$cookies))
#
# (V0 <- out$obs$V0)
# bump(V0, 6, 3, 0, 0)
# bump(V0, 6, 3, 0, 1)
# bump(V0, 6, 3, 0, 2)
# bump(V0, 6, 3, 0, 3)
# out$fullExp$V0
# out$decompose(out$effects[,1])
#
# (V1 <- out$obs$V1)
# bump(V1, 6, 3, 1, 0) # cbind(bump(V1, 6, 3, 1, 0), out$fullExp$V1[[1]])
# bump(V1, 6, 3, 1, 1) # cbind(bump(V1, 6, 3, 1, 1), out$fullExp$V1[[2]])
# bump(V1, 6, 3, 1, 2) # cbind(bump(V1, 6, 3, 1, 2), out$fullExp$V1[[3]])
# bump(V1, 6, 3, 1, 3) # cbind(bump(V1, 6, 3, 1, 3), out$fullExp$V1[[4]])
# out$fullExp$V1 # the sampler doesn't distribute it's samples up evenly
#
# (V2 <- out$obs$V2)
# bump(V2, 6, 3, 2, 0) # cbind(bump(V2, 6, 3, 2, 0), out$fullExp$V2[[1]])
# bump(V2, 6, 3, 2, 1) # cbind(bump(V2, 6, 3, 2, 1), out$fullExp$V2[[2]])
# bump(V2, 6, 3, 2, 2) # cbind(bump(V2, 6, 3, 2, 2), out$fullExp$V2[[3]])
# bump(V2, 6, 3, 2, 3) # cbind(bump(V2, 6, 3, 2, 3), out$fullExp$V2[[4]])
#
# (V3 <- out$obs$V3)
# bump(V3, 6, 3, 3, 0)
# bump(V3, 6, 3, 3, 1)
# bump(V3, 6, 3, 3, 2)
# bump(V3, 6, 3, 3, 3)
#
#
#
# ## End(Not run)
Run the code above in your browser using DataLab