ncn-foreigners / paper-nonprob-qcal

Repo for the paper "Inference for non-probability samples using the calibration approach for quantiles"

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Repository for the paper "Inference for non-probability samples using the calibration approach for quantiles"

Working paper

Arxiv version

Here is the lastest version of the paper.

Requirements

R packages

install.packages("remotes") ## to install `nonprobsvy`
remotes::install_github("ncn-foreigners/nonprobsvy@gee_momentfit") ## not from the main or dev brach
install.packages(c("jointCalib", "sampling", "survey", "data.table", "ggplot2")) ## statistical
install.packages(c("data.table", "ggplot2", "xtable", "stringi")) ## processing
install.packages(c("doSNOW", "progress", "foreach")) ## paralell computing

Codes were developed under the following R version

> sessionInfo()
R version 4.3.2 (2023-10-31)
Platform: aarch64-apple-darwin20 (64-bit)
Running under: macOS Sonoma 14.3

Structure

Structure of the repo:

  • codes/:
    • sim-code-yang-2020.R -- function with all estimators discussed in the paper
    • sim-code-run.R -- script to run function yang_sim() and the main simulation
    • sim-processing-results.qmd -- notebook with codes processing results
  • figs -- figures for the plot
  • results/ -- simulation results in the RDS format
  • paper/ -- pdf file with the paper and source files

Financing

Work on this paper was supported by the National Science Centre, OPUS 22 grant no. 2020/39/B/HS4/00941.

About

Repo for the paper "Inference for non-probability samples using the calibration approach for quantiles"


Languages

Language:HTML 95.1%Language:R 4.9%