pi_ij | R Documentation |
Calculate joint inclusion probability of unit $j$ and $h$
pi_ij(N, n1, m_vec)
N |
Population size. |
n1 |
An integer giving the initial sample size (e.g., a simple random sample). |
m_vec |
Vector of values m for the set of units in a sample, of length n1. Each m value within the vector |
thompson1990adaptiveACSampling
# Thompson sampling book, ch. 24 exercises, p. 307, number 2 library(magrittr) N=1000 n1=100 m=c(2,3,rep(1,98)) pi_ij(N, n1, m) %>% .[1,2]
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.