Package: RPIV Title: Residual Prediction Tests for Well-Specification of Instrumental Variable Models Version: 1.1.1 Authors@R: person("Cyrill", "Scheidegger", email = "cyscheidegger@gmail.com", role = c("aut", "cre", "cph"), comment = c(ORCID = "0009-0005-2851-1384")) Description: Two tests for the well-specification of the linear instrumental variable model. The first test is based on trying to predict the residuals of a two-stage least-squares regression using a random forest. The second test is robust to weak-identification and based on trying to predict the residuals for a particular candidate parameter and can also be used to construct confidence sets with an Anderson-Rubin-type inversion. Details can be found in Scheidegger, Londschien and Bühlmann (2025) "Machine-learning-powered specification testing in linear instrumental variable models" . URL: https://github.com/cyrillsch/RPIV License: GPL (>= 3) Encoding: UTF-8 Roxygen: list(markdown = TRUE) Imports: ranger, stats Suggests: testthat (>= 3.0.0) Config/testthat/edition: 3 Config/roxygen2/version: 8.1.0 Repository: https://cyrillsch.r-universe.dev Date/Publication: 2026-09-04 08:42:30 UTC RemoteUrl: https://github.com/cyrillsch/rpiv RemoteRef: HEAD RemoteSha: 793f7fea9fffa7aee48e1db65038f6ba12fbd3c2 NeedsCompilation: no Packaged: 2026-10-04 10:34:30 UTC; root Author: Cyrill Scheidegger [aut, cre, cph] (ORCID: ) Maintainer: Cyrill Scheidegger