Usage
WeightsCalDF(ysA, ysB, pi_A, pi_B, domains_A, domains_B, N_A = NULL, N_B = NULL,
N_ab = NULL, xsAFrameA = NULL, xsBFrameA = NULL, xsAFrameB = NULL, xsBFrameB = NULL,
xsT = NULL, XA = NULL, XB = NULL, X = NULL, met = "linear")
Arguments
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$.
domains_A
A character vector of length $n_A$ indicating the domain each unit from $s_A$ belongs to. Possible values are "a" and "ab".
domains_B
A character vector of length $n_B$ indicating the domain each unit from $s_B$ belongs to. Possible values are "b" and "ba".
N_A
(Optional) A numeric value indicating the size of frame A.
N_B
(Optional) A numeric value indicating the size of frame B.
N_ab
(Optional) A numeric value indicating the size of the overlap domain.
xsAFrameA
(Optional) A numeric vector of length $n_A$ or a numeric matrix or data frame of dimensions $n_A$ x $m_A$, with $m_A$ the number of auxiliary variables in frame A, containing auxiliary information in frame A for units included in $s_A$.
xsBFrameA
(Optional) A numeric vector of length $n_B$ or a numeric matrix or data frame of dimensions $n_B$ x $m_A$, with $m_A$ the number of auxiliary variables in frame A, containing auxiliary information in frame A for units included in $s_B$. For units in domain $b$, these values are 0.
xsAFrameB
(Optional) A numeric vector of length $n_A$ or a numeric matrix or data frame of dimensions $n_A$ x $m_B$, with $m_B$ the number of auxiliary variables in frame B, containing auxiliary information in frame B for units included in $s_A$. For units in domain $a$, these values are 0.
xsBFrameB
(Optional) A numeric vector of length $n_B$ or a numeric matrix or data frame of dimensions $n_B$ x $m_B$, with $m_B$ the number of auxiliary variables in frame B, containing auxiliary information in frame B for units included in $s_B$.
xsT
(Optional) A numeric vector of length $n$ or a numeric matrix or data frame of dimensions $n$ x $m_T$, with $m_T$ the number of auxiliary variables in both frames, containing auxiliary information for all units in the entire sample $s = s_A \cup s_B$.
XA
(Optional) A numeric value or vector of length $m_A$, with $m_A$ the number of auxiliary variables in frame A, indicating the population totals for the auxiliary variables considered in frame A.
XB
(Optional) A numeric value or vector of length $m_B$, with $m_B$ the number of auxiliary variables in frame B, indicating the population totals for the auxiliary variables considered in frame B.
X
(Optional) A numeric value or vector of length $m_T$, with $m_T$ the number of auxiliary variables in both frames, indicating the population totals for the auxiliary variables considered in both frames.
met
(Optional) A character vector indicating the distance that must be used in calibration process. Possible values are "linear", "raking" and "logit". Default is "linear".