# sc_weights: Calculates Schonlau and Couper weights In NonProbEst: Estimation in Nonprobability Sampling

## Description

Computes weights from propensity estimates using the (1 - pi_i)/pi_i formula introduced in Schonlau and Couper (2017).

## Usage

 1 sc_weights(propensities) 

## Arguments

 propensities A vector with the propensities associated to the elements of the convenience sample.

## Details

The function takes the vector of propensities π(x) and calculates the weights to be applied in the Hajek estimator using the formula that can be found in Schonlau and Couper (2017). For an individual i, weight is calculated as follows:

w_i = \frac{1 - π_i (x)}{π_i (x)}

## Value

A vector with the corresponding weights.

## References

Schonlau, M., & Couper, M. P. (2017). Options for conducting web surveys. Statistical Science, 32(2), 279-292.

## Examples

 1 2 3 covariates = c("education_primaria", "education_secundaria") data_propensities = propensities(sampleNP, sampleP, covariates) sc_weights(data_propensities\$convenience) 

### Example output

Loading required package: lattice
[1] 1.0951374 0.8213166 1.0576923 1.0951374 1.0576923 1.0951374 0.8213166
[8] 1.0576923 1.0576923 0.8213166 1.0576923 0.8213166 1.0951374 0.8213166
[15] 0.8213166 0.8213166 1.0951374 1.0951374 0.8213166 1.0951374 0.8213166
[22] 0.8213166 0.8213166 0.8213166 0.8213166 1.0576923 1.0576923 1.0951374
[29] 1.0576923 0.8213166 1.0951374 1.0951374 1.0951374 1.0951374 1.0951374
[36] 0.8213166 1.0951374 1.0576923 0.8213166 1.0951374 1.0951374 0.8213166
[43] 0.8213166 0.8213166 0.8213166 1.0951374 1.0951374 1.0576923 0.8213166
[50] 0.8213166 0.8213166 1.0951374 0.8213166 1.0576923 1.0951374 0.8213166
[57] 1.0951374 1.0951374 0.8213166 1.0951374 1.0951374 1.0951374 0.8213166
[64] 1.0951374 1.0951374 1.0951374 1.0576923 0.8213166 1.0951374 0.8213166
[71] 1.0951374 1.0951374 1.0951374 0.8213166 0.8213166 1.0951374 1.0576923
[78] 1.0951374 1.0576923 0.8213166 1.0951374 1.0576923 0.8213166 1.0951374
[85] 1.0576923 1.0951374 1.0576923 0.8213166 1.0951374 1.0951374 1.0951374
[92] 1.0951374 0.8213166 1.0951374 0.8213166 1.0951374 1.0951374 0.8213166
[99] 1.0951374 0.8213166 0.8213166 1.0951374 1.0576923 1.0951374 1.0951374
[106] 0.8213166 1.0951374 1.0951374 1.0576923 1.0951374 1.0951374 0.8213166
[113] 0.8213166 1.0951374 1.0951374 1.0951374 1.0576923 1.0576923 1.0951374
[120] 1.0951374 1.0951374 0.8213166 0.8213166 1.0951374 1.0951374 0.8213166
[127] 1.0951374 1.0951374 1.0951374 1.0576923 1.0951374 1.0951374 0.8213166
[134] 1.0576923 1.0951374 1.0951374 1.0576923 1.0951374 1.0951374 1.0951374
[141] 1.0951374 1.0951374 1.0576923 0.8213166 1.0951374 0.8213166 0.8213166
[148] 0.8213166 0.8213166 1.0576923 1.0576923 0.8213166 1.0951374 1.0951374
[155] 1.0951374 0.8213166 1.0951374 1.0951374 0.8213166 1.0951374 1.0951374
[162] 1.0576923 1.0576923 1.0576923 1.0576923 1.0576923 1.0576923 1.0951374
[169] 1.0576923 1.0951374 0.8213166 1.0576923 1.0576923 0.8213166 0.8213166
[176] 1.0951374 0.8213166 1.0951374 1.0951374 1.0576923 1.0951374 0.8213166
[183] 1.0951374 1.0951374 0.8213166 1.0951374 1.0576923 0.8213166 1.0951374
[190] 1.0576923 1.0951374 1.0576923 1.0951374 1.0951374 1.0951374 1.0951374
[197] 1.0951374 1.0951374 0.8213166 0.8213166 0.8213166 1.0951374 1.0951374
[204] 1.0951374 0.8213166 1.0951374 0.8213166 1.0951374 1.0576923 0.8213166
[211] 1.0951374 0.8213166 1.0576923 1.0576923 1.0951374 0.8213166 0.8213166
[218] 1.0951374 0.8213166 1.0951374 1.0951374 1.0951374 0.8213166 0.8213166
[225] 1.0951374 1.0951374 0.8213166 0.8213166 1.0951374 1.0951374 1.0951374
[232] 0.8213166 1.0576923 0.8213166 1.0951374 1.0576923 1.0576923 0.8213166
[239] 1.0951374 0.8213166 0.8213166 0.8213166 1.0951374 1.0576923 1.0951374
[246] 1.0951374 0.8213166 1.0576923 0.8213166 1.0576923 0.8213166 1.0951374
[253] 1.0951374 1.0951374 1.0951374 1.0951374 0.8213166 1.0576923 1.0576923
[260] 0.8213166 1.0576923 0.8213166 0.8213166 1.0951374 1.0576923 0.8213166
[267] 1.0576923 0.8213166 1.0951374 1.0951374 1.0576923 1.0576923 1.0576923
[274] 0.8213166 1.0951374 1.0576923 1.0951374 1.0951374 1.0951374 1.0576923
[281] 1.0951374 1.0576923 0.8213166 1.0576923 1.0576923 1.0951374 1.0576923
[288] 0.8213166 1.0951374 0.8213166 1.0951374 1.0576923 1.0951374 0.8213166
[295] 0.8213166 1.0576923 0.8213166 1.0951374 0.8213166 1.0951374 1.0576923
[302] 1.0951374 1.0576923 1.0951374 1.0951374 1.0951374 1.0951374 1.0951374
[309] 1.0576923 0.8213166 0.8213166 1.0951374 1.0576923 0.8213166 1.0576923
[316] 1.0576923 1.0951374 1.0951374 1.0951374 0.8213166 0.8213166 0.8213166
[323] 1.0576923 1.0576923 1.0951374 1.0951374 0.8213166 1.0951374 1.0951374
[330] 1.0951374 1.0951374 0.8213166 0.8213166 1.0951374 0.8213166 1.0951374
[337] 0.8213166 1.0576923 1.0576923 1.0951374 1.0951374 0.8213166 1.0951374
[344] 1.0951374 1.0951374 1.0951374 0.8213166 1.0951374 1.0576923 1.0951374
[351] 1.0951374 0.8213166 0.8213166 1.0951374 0.8213166 1.0951374 0.8213166
[358] 1.0951374 1.0576923 1.0951374 1.0951374 0.8213166 1.0951374 0.8213166
[365] 1.0951374 1.0951374 0.8213166 1.0951374 0.8213166 0.8213166 1.0951374
[372] 0.8213166 0.8213166 1.0951374 1.0576923 1.0951374 1.0951374 0.8213166
[379] 0.8213166 1.0576923 1.0576923 1.0951374 1.0576923 1.0951374 1.0951374
[386] 1.0951374 1.0951374 0.8213166 0.8213166 1.0951374 1.0951374 1.0951374
[393] 1.0951374 1.0576923 0.8213166 1.0576923 0.8213166 0.8213166 1.0951374
[400] 1.0951374 1.0576923 0.8213166 1.0576923 0.8213166 1.0951374 0.8213166
[407] 1.0951374 0.8213166 1.0576923 1.0951374 0.8213166 1.0576923 0.8213166
[414] 1.0951374 1.0951374 0.8213166 0.8213166 1.0951374 1.0951374 1.0576923
[421] 0.8213166 1.0576923 1.0576923 1.0951374 1.0576923 0.8213166 1.0951374
[428] 0.8213166 0.8213166 1.0951374 1.0951374 1.0576923 1.0951374 1.0951374
[435] 1.0951374 1.0576923 1.0951374 0.8213166 1.0951374 1.0951374 1.0951374
[442] 1.0951374 1.0576923 1.0951374 1.0576923 1.0951374 0.8213166 0.8213166
[449] 1.0951374 1.0576923 1.0951374 0.8213166 0.8213166 1.0951374 1.0951374
[456] 1.0951374 0.8213166 1.0576923 0.8213166 1.0576923 1.0576923 1.0951374
[463] 0.8213166 1.0951374 0.8213166 0.8213166 0.8213166 1.0576923 0.8213166
[470] 1.0951374 1.0576923 1.0951374 1.0951374 0.8213166 1.0951374 1.0951374
[477] 1.0951374 1.0951374 1.0576923 1.0951374 1.0576923 1.0951374 0.8213166
[484] 1.0576923 1.0951374 1.0576923 1.0576923 1.0576923 0.8213166 1.0576923
[491] 1.0951374 1.0576923 0.8213166 0.8213166 1.0576923 1.0951374 1.0951374
[498] 0.8213166 1.0951374 1.0951374 1.0576923 1.0951374 0.8213166 0.8213166
[505] 1.0951374 1.0576923 0.8213166 1.0951374 0.8213166 1.0951374 1.0951374
[512] 1.0951374 1.0576923 0.8213166 0.8213166 0.8213166 1.0576923 1.0951374
[519] 1.0576923 1.0951374 0.8213166 1.0576923 0.8213166 1.0951374 1.0951374
[526] 1.0951374 1.0951374 0.8213166 0.8213166 1.0576923 1.0951374 1.0951374
[533] 1.0951374 1.0951374 1.0576923 1.0951374 1.0576923 1.0951374 1.0951374
[540] 1.0951374 1.0951374 0.8213166 1.0951374 1.0576923 1.0951374 1.0951374
[547] 0.8213166 1.0576923 1.0951374 1.0951374 1.0951374 1.0951374 1.0951374
[554] 0.8213166 1.0951374 1.0576923 0.8213166 1.0951374 1.0576923 0.8213166
[561] 1.0951374 0.8213166 1.0951374 0.8213166 1.0951374 1.0576923 1.0951374
[568] 1.0951374 1.0576923 0.8213166 1.0951374 1.0951374 0.8213166 1.0576923
[575] 1.0951374 1.0951374 1.0951374 1.0576923 1.0576923 1.0951374 1.0576923
[582] 1.0951374 1.0951374 0.8213166 1.0951374 1.0951374 0.8213166 0.8213166
[589] 1.0576923 1.0576923 1.0951374 0.8213166 1.0576923 1.0951374 1.0576923
[596] 0.8213166 1.0951374 1.0951374 1.0951374 1.0951374 1.0951374 0.8213166
[603] 1.0951374 1.0576923 1.0951374 1.0576923 0.8213166 0.8213166 1.0951374
[610] 1.0951374 1.0576923 1.0576923 0.8213166 0.8213166 0.8213166 0.8213166
[617] 0.8213166 1.0951374 1.0576923 1.0951374 1.0576923 1.0951374 1.0951374
[624] 0.8213166 1.0951374 1.0576923 1.0576923 1.0951374 1.0576923 1.0951374
[631] 0.8213166 0.8213166 1.0951374 0.8213166 1.0951374 1.0951374 1.0951374
[638] 1.0576923 1.0951374 0.8213166 0.8213166 1.0951374 1.0951374 1.0951374
[645] 1.0951374 1.0951374 1.0576923 1.0951374 1.0576923 1.0576923 0.8213166
[652] 0.8213166 1.0951374 1.0576923 1.0576923 0.8213166 1.0576923 1.0951374
[659] 0.8213166 0.8213166 0.8213166 1.0951374 1.0951374 1.0951374 1.0576923
[666] 1.0576923 0.8213166 1.0576923 1.0576923 0.8213166 0.8213166 1.0951374
[673] 0.8213166 1.0951374 0.8213166 0.8213166 1.0576923 0.8213166 1.0951374
[680] 1.0951374 1.0951374 0.8213166 1.0951374 0.8213166 0.8213166 1.0951374
[687] 0.8213166 0.8213166 1.0951374 1.0951374 1.0576923 0.8213166 1.0576923
[694] 1.0576923 1.0951374 1.0951374 1.0951374 0.8213166 1.0576923 1.0951374
[701] 0.8213166 0.8213166 1.0951374 0.8213166 1.0951374 1.0951374 1.0951374
[708] 1.0576923 0.8213166 1.0951374 1.0951374 0.8213166 1.0951374 0.8213166
[715] 1.0576923 1.0951374 1.0576923 1.0576923 0.8213166 0.8213166 1.0576923
[722] 1.0576923 0.8213166 1.0951374 1.0951374 1.0951374 1.0951374 1.0951374
[729] 0.8213166 1.0951374 1.0951374 1.0951374 1.0576923 1.0951374 0.8213166
[736] 0.8213166 1.0576923 1.0576923 1.0951374 1.0951374 1.0951374 1.0951374
[743] 0.8213166 1.0951374 1.0951374 1.0951374 1.0951374 1.0576923 0.8213166
[750] 1.0576923 0.8213166 0.8213166 0.8213166 0.8213166 0.8213166 1.0951374
[757] 0.8213166 1.0951374 1.0951374 1.0951374 0.8213166 0.8213166 0.8213166
[764] 1.0951374 1.0576923 1.0576923 1.0576923 0.8213166 1.0951374 1.0951374
[771] 0.8213166 1.0951374 0.8213166 1.0951374 0.8213166 1.0951374 1.0951374
[778] 1.0576923 0.8213166 1.0951374 1.0951374 1.0576923 1.0951374 1.0951374
[785] 1.0951374 0.8213166 0.8213166 1.0576923 0.8213166 0.8213166 0.8213166
[792] 1.0576923 1.0576923 1.0951374 1.0576923 0.8213166 0.8213166 0.8213166
[799] 1.0576923 0.8213166 0.8213166 0.8213166 1.0576923 1.0951374 0.8213166
[806] 0.8213166 0.8213166 1.0951374 0.8213166 1.0951374 1.0951374 1.0951374
[813] 1.0951374 1.0951374 1.0951374 1.0576923 0.8213166 0.8213166 1.0951374
[820] 0.8213166 0.8213166 1.0576923 1.0951374 0.8213166 0.8213166 0.8213166
[827] 1.0951374 1.0951374 1.0951374 1.0951374 0.8213166 1.0951374 1.0951374
[834] 0.8213166 1.0951374 1.0576923 1.0951374 0.8213166 0.8213166 0.8213166
[841] 1.0576923 1.0951374 1.0951374 1.0951374 1.0951374 1.0951374 1.0951374
[848] 1.0576923 0.8213166 1.0576923 1.0951374 1.0951374 1.0951374 0.8213166
[855] 1.0576923 1.0951374 1.0951374 0.8213166 0.8213166 1.0951374 1.0951374
[862] 1.0576923 1.0951374 0.8213166 1.0576923 1.0951374 0.8213166 1.0576923
[869] 1.0951374 0.8213166 1.0576923 1.0576923 1.0951374 0.8213166 1.0951374
[876] 1.0951374 0.8213166 0.8213166 1.0951374 1.0951374 1.0951374 1.0576923
[883] 1.0951374 1.0951374 1.0951374 1.0576923 0.8213166 1.0951374 1.0951374
[890] 0.8213166 1.0951374 0.8213166 1.0951374 1.0576923 0.8213166 1.0576923
[897] 0.8213166 1.0951374 1.0951374 1.0576923 1.0951374 0.8213166 0.8213166
[904] 1.0951374 1.0576923 1.0951374 1.0576923 1.0951374 1.0951374 0.8213166
[911] 1.0951374 0.8213166 0.8213166 1.0576923 0.8213166 0.8213166 1.0951374
[918] 0.8213166 1.0951374 1.0951374 1.0576923 1.0951374 0.8213166 0.8213166
[925] 1.0951374 1.0951374 1.0951374 1.0951374 1.0951374 0.8213166 0.8213166
[932] 1.0951374 0.8213166 1.0951374 1.0951374 1.0576923 0.8213166 1.0576923
[939] 1.0951374 1.0951374 1.0951374 1.0951374 0.8213166 1.0951374 1.0951374
[946] 1.0576923 1.0951374 0.8213166 1.0951374 1.0951374 0.8213166 1.0951374
[953] 1.0951374 1.0951374 0.8213166 1.0951374 1.0951374 1.0576923 1.0951374
[960] 1.0951374 1.0951374 0.8213166 1.0951374 1.0951374 0.8213166 1.0951374
[967] 1.0951374 1.0951374 1.0951374 1.0951374 1.0576923 0.8213166 0.8213166
[974] 1.0951374 0.8213166 1.0951374 1.0951374 1.0951374 0.8213166 1.0951374
[981] 1.0576923 1.0951374 1.0951374 1.0951374 1.0951374 1.0951374 0.8213166
[988] 1.0951374 0.8213166 1.0576923 0.8213166 1.0951374 1.0951374 0.8213166
[995] 0.8213166 1.0951374 1.0951374 0.8213166 0.8213166 1.0951374


NonProbEst documentation built on July 1, 2020, 6:08 p.m.