pi_ij: Calculate joint inclusion probability of unit $j$ and $h$

View source: R/pi_ij.R

pi_ijR Documentation

Calculate joint inclusion probability of unit $j$ and $h$

Description

Calculate joint inclusion probability of unit $j$ and $h$

Usage

pi_ij(N, n1, m_vec)

Arguments

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 m_vec denotes the number of units satisfying the ACS criterion for the network i to which the unit belongs.

References

\insertRef

thompson1990adaptiveACSampling

Examples

# 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]

ksauby/ACS documentation built on Aug. 18, 2022, 3:33 a.m.