Compare {Frames2}R Documentation

Summary of estimators

Description

Returns all possible estimators that can be computed according to the information provided

Usage

Compare(ysA, ysB, pi_A, pi_B, domains_A, domains_B, pik_ab_B = NULL, pik_ba_A = NULL, 
N_A = NULL, N_B = NULL, N_ab = NULL, xsAFrameA = NULL, xsBFrameA = NULL,  
xsAFrameB = NULL, xsBFrameB = NULL, XA = NULL, XB = NULL, met = "linear", 
conf_level = NULL)

Arguments

ysA

A numeric vector of length nAn_A or a numeric matrix or data frame of dimensions nAn_A x cc containing information about variable(s) of interest from sAs_A.

ysB

A numeric vector of length nBn_B or a numeric matrix or data frame of dimensions nBn_B x cc containing information about variable(s) of interest from sBs_B.

pi_A

A numeric vector of length nAn_A or a square numeric matrix of dimension nAn_A containing first order or first and second order inclusion probabilities for units included in sAs_A.

pi_B

A numeric vector of length nBn_B or a square numeric matrix of dimension nBn_B containing first order or first and second order inclusion probabilities for units included in sBs_B.

domains_A

A character vector of length nAn_A indicating the domain each unit from sAs_A belongs to. Possible values are "a" and "ab".

domains_B

A character vector of length nBn_B indicating the domain each unit from sBs_B belongs to. Possible values are "b" and "ba".

pik_ab_B

(Optional) A numeric vector of size nAn_A containing first order inclusion probabilities according to sampling desing in frame B for units belonging to overlap domain that have been selected in sAs_A.

pik_ba_A

(Optional) A numeric vector of size nBn_B containing first order inclusion probabilities according to sampling desing in frame A for units belonging to overlap domain that have been selected in sBs_B.

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 nAn_A or a numeric matrix or data frame of dimensions nAn_A x mAm_A, with mAm_A the number of auxiliary variables in frame A, containing auxiliary information in frame A for units included in sAs_A.

xsBFrameA

(Optional) A numeric vector of length nBn_B or a numeric matrix or data frame of dimensions nBn_B x mAm_A, with mAm_A the number of auxiliary variables in frame A, containing auxiliary information in frame A for units included in sBs_B. For units in domain bb, these values are 0.

xsAFrameB

(Optional) A numeric vector of length nAn_A or a numeric matrix or data frame of dimensions nAn_A x mBm_B, with mBm_B the number of auxiliary variables in frame B, containing auxiliary information in frame B for units included in sAs_A. For units in domain aa, these values are 0.

xsBFrameB

(Optional) A numeric vector of length nBn_B or a numeric matrix or data frame of dimensions nBn_B x mBm_B, with mBm_B the number of auxiliary variables in frame B, containing auxiliary information in frame B for units included in sBs_B.

XA

(Optional) A numeric value or vector of length mAm_A, with mAm_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 mBm_B, with mBm_B the number of auxiliary variables in frame B, indicating the population totals for the auxiliary variables considered in frame B.

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".

conf_level

(Optional) A numeric value indicating the confidence level for the confidence intervals, if desired.

Examples

data(DatA)
data(DatB)
data(PiklA)
data(PiklB)

Compare(DatA$Feed, DatB$Feed, PiklA, PiklB, DatA$Domain, DatB$Domain)

[Package Frames2 version 0.2.1 Index]