vartaylor_ratio {sampling} | R Documentation |
Taylor-series linearization variance estimation of a ratio
Description
Computes the Taylor-series linearization variance estimation of the ratio
The estimators in the ratio are Horvitz-Thompson type estimators.
Usage
vartaylor_ratio(Ys,Xs,pikls)
Arguments
Ys |
vector of the first observed variable; its length is equal to n, the sample size. |
Xs |
vector of the second observed variable; its length is equal to n, the sample size. |
pikls |
matrix of joint inclusion probabilities of the sample units; its dimension is nxn. |
Details
The function implements the following estimator:
where .
References
Woodruff, R. (1971). A Simple Method for Approximating the Variance of a Complicated Estimate, Journal of the American Statistical Association, Vol. 66, No. 334 , pp. 411–414.
Examples
data(belgianmunicipalities)
attach(belgianmunicipalities)
# inclusion probabilities, sample size 200
pik=inclusionprobabilities(Tot04,200)
# the first variable (population level)
Y=Men04
# the second variable (population level)
X=Women04
# population size
N=length(pik)
# joint inclusion probabilities for Poisson sampling
pikl=outer(pik,pik,"*")
diag(pikl)=pik
# draw a sample using Poisson sampling
s=UPpoisson(pik)
# sample inclusion probabilities
piks=pik[s==1]
# the first observed variable (sample level)
Ys=Y[s==1]
# the second observed variable (sample level)
Xs=X[s==1]
# matrix of joint inclusion prob. (sample level)
pikls=pikl[s==1,s==1]
# ratio estimator and its estimated variance
vartaylor_ratio(Ys,Xs,pikls)
[Package sampling version 2.10 Index]