robust2sls0.2.3 package

Outlier Robust Two-Stage Least Squares Inference and Testing

beta_hausman

Calculates a Hausman test on the difference between robust and full sa...

beta_inf_correction

Calculates the correction factor for inference under H0 of no outliers

beta_inf

Calculates valid se for coefficients under H0 of no outliers

beta_t

Conducts a t-test on the difference between robust and full sample est...

beta_test_avar

Calculates the asymptotic variance of the difference between robust an...

case_resampling

Uses nonparametric case resampling for standard errors of parameters a...

constants

Calculate constants across estimation

conv_diff

L2 norm between two most recent estimates

count_indices

Counts the number of times each index was sampled

counttest

Count test

estimate_param_null

Estimation of moments of the data

estimate_param

Estimation of moments of the data

evaluate_boot

Evaluate bootstrap results

extract_boot

Extracts bootstrap results for a specific iteration

extract_formula

Extract the elements of ivreg formula

gauge_avar

Asymptotic variance of gauge

gauge_covar

Asymptotic covariance of gauge

generate_data

Random data of 2SLS model (Monte Carlo)

generate_param

Parameters of 2SLS model (Monte Carlo)

globaltest

Global test correcting for multiple hypothesis testing

iis_init

Impulse Indicator Saturation (IIS initial estimator)

mc_grid

Monte Carlo simulations parameter grid

multi_cutoff_to_fodr_vec

Creates a vector of the centered FODR across different cut-offs

multi_cutoff

Multiple models, varying cut-off

mvn_sup

Multivariate normal supremum simulation

new_robust2sls

Constructor of robust2sls class

nonmissing

Determine which observations can be used for estimation

nonparametric_resampling

Nonparametric resampling from a data frame

nonparametric

Create indices for nonparametric bootstrap

outlier_detection

Outlier detection algorithms

outlier

Outlier history of single observation

outliers_prop

Proportion of outliers

outliers

Number of outliers

plot.robust2sls

Plotting of standardised residuals and outliers

print.robust2sls

Helper of robust2sls class

proptest

Proportion test

robust2sls-package

robust2sls: A package for outlier robust 2SLS inference and testing

robustified_init

Robustified 2SLS (full sample initial estimator)

saturated_init

Saturated 2SLS (split-sample initial estimator)

selection_iis

Create selection (non-outlying) vector from IIS model

selection

Create selection (non-outlying) vector from model

simes

Simes (1986) procedure for multiple testing

sumtest

Scaling sum proportion test across different cut-offs

suptest

Supremum proportion test across different cut-offs

test_cpv

Critical and p-value for test statistic relative to simulated distribu...

update_list

Append new iteration results to "robust2sls" object

user_init

User-specified initial estimator

validate_robust2sls

Validator of robust2sls class

varrho

Calculate varrho coefficients

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>.

  • Maintainer: Jonas Kurle
  • License: GPL-3
  • Last published: 2025-05-20