Package: ddi Type: Package Title: The Data Defect Index for Samples that May not be IID Version: 0.1.0 Authors@R: c(person(given = "Shiro", family = "Kuriwaki", role = c("aut", "cre"), email = "shirokuriwaki@gmail.com", comment = c(ORCID = "0000-0002-5687-2647"))) Description: Implements Meng's data defect index (ddi), which represents the degree of sample bias relative to an iid sample. The data defect correlation (ddc) represents the correlation between the outcome of interest and the selection into the sample; when the sample selection is independent across the population, the ddc is zero. Details are in Meng (2018) , "Statistical Paradises and Paradoxes in Big Data (I): Law of Large Populations, Big Data Paradox, and the 2016 US Presidential Election." Survey estimates from the Cooperative Congressional Election Study (CCES) is included to replicate the article's results. Encoding: UTF-8 URL: https://github.com/kuriwaki/ddi BugReports: http://github.com/kuriwaki/ddi/issues License: GPL (>= 2) LazyData: true RoxygenNote: 7.0.2 Depends: R (>= 2.10) Suggests: testthat (>= 2.1.0), dplyr, tibble Repository: https://kuriwaki.r-universe.dev Date/Publication: 2020-05-09 01:04:05 UTC RemoteUrl: https://github.com/kuriwaki/ddi RemoteRef: HEAD RemoteSha: bbbc6772ef521b958033485f5fc30cb096e191b1 NeedsCompilation: no Packaged: 2026-07-02 09:16:44 UTC; root Author: Shiro Kuriwaki [aut, cre] (ORCID: ) Maintainer: Shiro Kuriwaki