Learn R Programming

BalancedSampling (version 1.6.3)

scps_getrand: Spatially correlated Poisson sampling

Description

Retrieves a vector of random numbers resulting in the provided scps sample

Usage

scps_getrand(prob,x,s)

Value

Retrieves a vector of length N with random numbers resulting in the provided scps sample

Arguments

prob

vector of length N with inclusion probabilities

x

matrix of (standardized) auxiliary variables of N rows and q columns

s

vector of length N with inclusion indicators

References

Grafström, A. (2012). Spatially correlated Poisson sampling. Journal of Statistical Planning and Inference, 142(1), 139-147.