powered by
inclusionProb(prob, size)
setup
"SampleSetup"
pweights <- sample(1:5, 25, replace = TRUE) inclusionProb(pweights, 10)
Run the code above in your browser using DataLab