The Horvitz-Thompson estimator and the Hartley-Rao approximation require information in addition to the sampling probabilities for sampled individuals. These functions allow this information to be supplied.
HR(psum=NULL, strata = NULL) ppsmat(jointprob, tolerance = 1e-04) ppscov(probcov, weighted=FALSE)
The sum of squared sampling probabilities for the population, divided by the sample size, as a single number or as a vector for stratified sampling
Stratum labels, of the same length as
psum is a vector
Matrix of pairwise sampling probabilities for the sampled individuals
Tolerance for deciding that the covariance of sampling indicators is zero
Covariance of the sampling indicators (often written 'Delta'), or weighted covariance if
probcov argument is the covariance divided by pairwise sampling probabilities
An object of class
ppsdcheck suitable for supplying as the
pps argument to
election for examples of PPS designs
HR(0.1) #> $pbar #> $pbar[] #>  0.1 #> #> #> $strata #> $strata[] #>  1 #> #> #> $call #> HR(0.1) #> #> attr(,"class") #>  "HR"