Last chance! 50% off unlimited learning
Sale ends in
Compute the design variance of the regression estimator of the total of y
under Pareto probability proportional-to-size Sampling, where the size variable is indicated by x_des
and the sample size is n
.
varpipsreg(y, x_des, n, x_est)
a numeric vector giving the values of the study variable.
a positive numeric vector giving the values of the auxiliary variable that is used for defining the inclusion probabilities.
a positive integer indicating the desired sample size.
a positive numeric vector giving the values of the auxiliary variable that is used at the estimation stage.
A numeric value giving the variance of the regression estimator under Pareto probability proportional-to-size Sampling.
Target inclusion probabilities are computed as
If
Once the
Rosen, B. (1997). On Sampling with Probability Proportional to Size. Journal of Statistical Planning and Inference 62, 159-191.
varpips
for the variance of the Horvitz-Thompson estimator under probability proportional-to-size sampling; varstsi
for the variance of the Horvitz-Thompson estimator under stratified simple random sampling; varpipspos
for the variance of the poststratified estimator under probability proportional-to-size sampling; varstsipos
for the variance of the poststratified estimator under stratified simple random sampling; varstsireg
for the variance of the regression estimator under stratified simple random sampling.
# NOT RUN {
x<- 1 + sort( rgamma(5000, shape=4/9, scale=108) ) #simulating the auxiliary variable
y<- simulatey(x,b0=10,b1=1,b2=1.25,b4=0.75,rho=0.95)
varpipsreg(y, x_des=x^0.75, n=500, x_est=x^1.25)
# }
Run the code above in your browser using DataLab