
Last chance! 50% off unlimited learning
Sale ends in
Computes weights from propensity estimates using the (1 - pi_i)/pi_i formula introduced in Schonlau and Couper (2017).
sc_weights(propensities)
A vector with the propensities associated to the elements of the convenience sample.
A vector with the corresponding weights.
The function takes the vector of propensities
Schonlau, M., & Couper, M. P. (2017). Options for conducting web surveys. Statistical Science, 32(2), 279-292.
# NOT RUN {
covariates = c("education_primaria", "education_secundaria")
data_propensities = propensities(sampleNP, sampleP, covariates)
sc_weights(data_propensities$convenience)
# }
Run the code above in your browser using DataLab