Package: robust2sls 0.2.2

Jonas Kurle

robust2sls: Outlier Robust Two-Stage Least Squares Inference and Testing

An implementation of easy tools for outlier robust inference in two-stage least squares (2SLS) models. The user specifies a reference distribution against which observations are classified as outliers or not. After removing the outliers, adjusted standard errors are automatically provided. Furthermore, several statistical tests for the false outlier detection rate can be calculated. The outlier removing algorithm can be iterated a fixed number of times or until the procedure converges. The algorithms and robust inference are described in more detail in Jiao (2019) <https://drive.google.com/file/d/1qPxDJnLlzLqdk94X9wwVASptf1MPpI2w/view>.

Authors:Jonas Kurle [aut, cre]

robust2sls_0.2.2.tar.gz
robust2sls_0.2.2.zip(r-4.5)robust2sls_0.2.2.zip(r-4.4)robust2sls_0.2.2.zip(r-4.3)
robust2sls_0.2.2.tgz(r-4.4-any)robust2sls_0.2.2.tgz(r-4.3-any)
robust2sls_0.2.2.tar.gz(r-4.5-noble)robust2sls_0.2.2.tar.gz(r-4.4-noble)
robust2sls_0.2.2.tgz(r-4.4-emscripten)robust2sls_0.2.2.tgz(r-4.3-emscripten)
robust2sls.pdf |robust2sls.html
robust2sls/json (API)
NEWS

# Install 'robust2sls' in R:
install.packages('robust2sls', repos = c('https://jkurle.r-universe.dev', 'https://cloud.r-project.org'))

Peer review:

Bug tracker:https://github.com/jkurle/robust2sls/issues

On CRAN:

39 exports 1 stars 0.74 score 88 dependencies 18 scripts 244 downloads

Last updated 2 years agofrom:7f2446c828. Checks:OK: 5 NOTE: 2. Indexed: yes.

TargetResultDate
Doc / VignettesOKSep 02 2024
R-4.5-winNOTESep 02 2024
R-4.5-linuxNOTESep 02 2024
R-4.4-winOKSep 02 2024
R-4.4-macOKSep 02 2024
R-4.3-winOKSep 02 2024
R-4.3-macOKSep 02 2024

Exports:beta_hausmanbeta_infbeta_inf_correctionbeta_tbeta_test_avarcase_resamplingcount_indicescounttestestimate_paramestimate_param_nullevaluate_bootextract_bootextract_formulagauge_avargauge_covargenerate_datagenerate_paramglobaltestiis_initmc_gridmulti_cutoffmvn_supnonmissingnonparametricnonparametric_resamplingoutlieroutlier_detectionoutliersoutliers_propproptestrobustified_initsaturated_initselection_iissimessumtestsuptestuser_initvalidate_robust2slsvarrho

Dependencies:abindbackportsbootbriobroomcallrcarcarDataclicodetoolscolorspacecowplotcpp11crayonDerivdescdiffobjdigestdoBydplyrevaluateexactcifansifarverforeachFormulafsgenericsggplot2gluegtableisobanditeratorsivregjsonlitelabelinglatticelifecyclelme4lmtestmagrittrMASSmathjaxrMatrixMatrixModelsmgcvmicrobenchmarkminqamodelrmunsellnlmenloptrnnetnumDerivpbkrtestpillarpkgbuildpkgconfigpkgloadpracmapraiseprocessxpspurrrquantregR6RColorBrewerRcppRcppEigenrematch2rlangrprojrootscalesSparseMssanvstringistringrsurvivaltestthattibbletidyrtidyselectutf8vctrsviridisLitewaldowithrzoo

Introduction to the robust2sls Package

Rendered fromoverview.Rmdusingknitr::rmarkdownon Sep 02 2024.

Last update: 2022-07-22
Started: 2021-11-14

Monte Carlo Simulations

Rendered frommonte-carlo.Rmdusingknitr::rmarkdownon Sep 02 2024.

Last update: 2022-07-22
Started: 2021-05-01

Outlier Testing

Rendered fromoutlier-testing.Rmdusingknitr::rmarkdownon Sep 02 2024.

Last update: 2022-07-22
Started: 2022-02-14

Readme and manuals

Help Manual

Help pageTopics
robust2sls: A package for outlier robust 2SLS inference and testingrobust2sls-package
Calculates a Hausman test on the difference between robust and full sample estimatesbeta_hausman
Calculates valid se for coefficients under H0 of no outliersbeta_inf
Calculates the correction factor for inference under H0 of no outliersbeta_inf_correction
Conducts a t-test on the difference between robust and full sample estimatesbeta_t
Calculates the asymptotic variance of the difference between robust and full sample estimators of the structural parametersbeta_test_avar
Uses nonparametric case resampling for standard errors of parameters and gaugecase_resampling
Counts the number of times each index was sampledcount_indices
Count testcounttest
Estimation of moments of the dataestimate_param
Estimation of moments of the dataestimate_param_null
Evaluate bootstrap resultsevaluate_boot
Extracts bootstrap results for a specific iterationextract_boot
Asymptotic variance of gaugegauge_avar
Asymptotic covariance of gaugegauge_covar
Random data of 2SLS model (Monte Carlo)generate_data
Parameters of 2SLS model (Monte Carlo)generate_param
Global test correcting for multiple hypothesis testingglobaltest
Impulse Indicator Saturation (IIS initial estimator)iis_init
Monte Carlo simulations parameter gridmc_grid
Multiple models, varying cut-offmulti_cutoff
Multivariate normal supremum simulationmvn_sup
Create indices for nonparametric bootstrapnonparametric
Nonparametric resampling from a data framenonparametric_resampling
Outlier history of single observationoutlier
Outlier detection algorithmsoutlier_detection
Number of outliersoutliers
Proportion of outliersoutliers_prop
Plotting of standardised residuals and outliersplot.robust2sls
Helper of robust2sls classprint.robust2sls
Proportion testproptest
Robustified 2SLS (full sample initial estimator)robustified_init
Saturated 2SLS (split-sample initial estimator)saturated_init
Create selection (non-outlying) vector from IIS modelselection_iis
Scaling sum proportion test across different cut-offssumtest
Supremum proportion test across different cut-offssuptest
User-specified initial estimatoruser_init
Validator of robust2sls classvalidate_robust2sls
Calculate varrho coefficientsvarrho