Description Usage Arguments Details Value References See Also Examples
Produces estimates for population total and mean using the Bankier-Kalton-Anderson estimator from survey data obtained from a dual frame sampling design. Confidence intervals are also computed, if required.
1 2 |
ysA |
A numeric vector of length n_A or a numeric matrix or data frame of dimensions n_A x c containing information about variable(s) of interest from s_A. |
ysB |
A numeric vector of length n_B or a numeric matrix or data frame of dimensions n_B x c containing information about variable(s) of interest from s_B. |
pi_A |
A numeric vector of length n_A or a square numeric matrix of dimension n_A containing first order or first and second order inclusion probabilities for units included in s_A. |
pi_B |
A numeric vector of length n_B or a square numeric matrix of dimension n_B containing first order or first and second order inclusion probabilities for units included in s_B. |
pik_ab_B |
A numeric vector of size n_A containing first order inclusion probabilities according to sampling design in frame B for units belonging to overlap domain that have been selected in s_A. |
pik_ba_A |
A numeric vector of size n_B containing first order inclusion probabilities according to sampling design in frame A for units belonging to overlap domain that have been selected in s_B. |
domains_A |
A character vector of size n_A indicating the domain each unit from s_A belongs to. Possible values are "a" and "ab". |
domains_B |
A character vector of size n_B indicating the domain each unit from s_B belongs to. Possible values are "b" and "ba". |
conf_level |
(Optional) A numeric value indicating the confidence level for the confidence intervals, if desired. |
BKA estimator of population total is given by
\hat{Y}_{BKA} = ∑_{i \in s_A}\tilde{d}_i^Ay_i + ∑_{i \in s_B}\tilde{d}_i^By_i
where \tilde{d}_i^A =≤ft\{\begin{array}{lcc} d_i^A & \textrm{if } i \in a\\ (1/d_i^A + 1/d_i^B)^{-1} & \textrm{if } i \in ab \end{array} \right. and \tilde{d}_i^B =≤ft\{\begin{array}{lcc} d_i^B & \textrm{if } i \in b\\ (1/d_i^A + 1/d_i^B)^{-1} & \textrm{if } i \in ba \end{array} \right. being d_i^A and d_i^B the design weights, obtained as the inverse of the first order inclusion probabilities, that is, d_i^A = 1/π_i^A and d_i^B = 1/π_i^B.
To estimate variance of this estimator, one uses following approach proposed by Rao and Skinner (1996)
\hat{V}(\hat{Y}_{BKA}) = \hat{V}(∑_{i \in s_A}\tilde{z}_i^A) + \hat{V}(∑_{i \in s_B}\tilde{z}_i^B)
with \tilde{z}_i^A = δ_i(a)y_i + (1 - δ_i(a))y_iπ_i^A/(π_i^A + π_i^B) and \tilde{z}_i^B = δ_i(b)y_i + (1 - δ_i(b))y_iπ_i^B/(π_i^A + π_i^B),
being δ_i(a) and δ_i(b) the indicator variables for domain a and domain b, respectively.
If both first and second order probabilities are known, variances and covariances involved in calculation of \hat{β} and \hat{V}(\hat{Y}_{FB}) are estimated using functions VarHT
and CovHT
, respectively. If
only first order probabilities are known, variances are estimated using Deville's method and covariances are estimated using following expression
\widehat{Cov}(\hat{X}, \hat{Y}) = \frac{\hat{V}(X + Y) - \hat{V}(X) - \hat{V}(Y)}{2}
BKA
returns an object of class "EstimatorDF" which is a list with, at least, the following components:
Call |
the matched call. |
Est |
total and mean estimation for main variable(s). |
VarEst |
variance estimation for main variable(s). |
If parameter conf_level
is different from NULL
, object includes component
ConfInt |
total and mean estimation and confidence intervals for main variables(s). |
In addition, components TotDomEst
and MeanDomEst
are available when estimator is based on estimators of the domains. Component Param
shows value of parameters involded in calculation of the estimator (if any).
By default, only Est
component (or ConfInt
component, if parameter conf_level
is different from NULL
) is shown. It is possible to access to all the components of the objects by using function summary
.
Bankier, M. D. (1986) Estimators Based on Several Stratified Samples With Applications to Multiple Frame Surveys. Journal of the American Statistical Association, Vol. 81, 1074 - 1079.
Kalton, G. and Anderson, D. W. (1986) Sampling Rare Populations. Journal of the Royal Statistical Society, Ser. A, Vol. 149, 65 - 82.
Rao, J. N. K. and Skinner, C. J. (1996) Estimation in Dual Frame Surveys with Complex Designs. Proceedings of the Survey Method Section, Statistical Society of Canada, 63 - 68.
Skinner, C. J. and Rao, J. N. K. (1996) Estimation in Dual Frame Surveys with Complex Designs. Journal of the American Statistical Association, Vol. 91, 433, 349 - 356.
1 2 3 4 5 6 7 8 9 10 11 12 13 | data(DatA)
data(DatB)
data(PiklA)
data(PiklB)
#Let calculate BKA estimator for population total for variable Leisure
BKA(DatA$Lei, DatB$Lei, PiklA, PiklB, DatA$ProbB, DatB$ProbA,
DatA$Domain, DatB$Domain)
#Now, let calculate BKA estimator and a 90% confidence interval for population
#total for variable Feeding considering only first order inclusion probabilities
BKA(DatA$Feed, DatB$Feed, DatA$ProbA, DatB$ProbB, DatA$ProbB,
DatB$ProbA, DatA$Domain, DatB$Domain, 0.90)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.