MyNixOS website logo
Description

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

R Package “robust2sls”

R-CMD-check Codecov testcoverage

The goal of robust2sls is to provide easy-to-use tools for outlier-robust inference and outlier testing in two-stage least squares (2SLS) models.

Installation

You can install the released version from CRAN with:

install.packages("robust2sls")

You can install the development version from GitHub with:

# install.packages("devtools")
devtools::install_github("jkurle/robust2sls")

Introduction

For a detailed introduction to the model framework, the different trimmed 2SLS algorithms, and examples, see the vignette Introduction to the robust2sls Package.

utils::vignette("overview", package = "robust2sls")

Note about Versions of Dependencies

The Depends: and Suggests: fields in the DESCRIPTION file have no minimum or maximum version because I cannot test how far the package is compatible with older versions of the dependencies. However, I also did not want to require the versions that were used during the development to not force users to update their packages and potentially break their other existing code.

The following table lists the version of each package that was used in the development of the robust2sls package.

For your information, robust2sls was developed under the following versions:

  • R: version 4.1.1 (2021-08-10)
  • Imports:
    • AER: v1.2-9
    • doRNG: v1.8.2
    • foreach: v1.5.1
    • pracma: v2.3.3
  • Suggests:
    • doFuture: v0.12.0
    • doParallel: v1.0.16
    • future: v1.21.0
    • ggplot2: v3.3.5
    • knitr: v1.36
    • MASS: v7.3-54
    • parallel: v4.1.1
    • rmarkdown: v2.8
    • testthat: v3.0.2
Metadata

Version

0.2.2

License

Unknown

Platforms (75)

    Darwin
    FreeBSD
    Genode
    GHCJS
    Linux
    MMIXware
    NetBSD
    none
    OpenBSD
    Redox
    Solaris
    WASI
    Windows
Show all
  • aarch64-darwin
  • aarch64-genode
  • aarch64-linux
  • aarch64-netbsd
  • aarch64-none
  • aarch64_be-none
  • arm-none
  • armv5tel-linux
  • armv6l-linux
  • armv6l-netbsd
  • armv6l-none
  • armv7a-darwin
  • armv7a-linux
  • armv7a-netbsd
  • armv7l-linux
  • armv7l-netbsd
  • avr-none
  • i686-cygwin
  • i686-darwin
  • i686-freebsd
  • i686-genode
  • i686-linux
  • i686-netbsd
  • i686-none
  • i686-openbsd
  • i686-windows
  • javascript-ghcjs
  • loongarch64-linux
  • m68k-linux
  • m68k-netbsd
  • m68k-none
  • microblaze-linux
  • microblaze-none
  • microblazeel-linux
  • microblazeel-none
  • mips-linux
  • mips-none
  • mips64-linux
  • mips64-none
  • mips64el-linux
  • mipsel-linux
  • mipsel-netbsd
  • mmix-mmixware
  • msp430-none
  • or1k-none
  • powerpc-netbsd
  • powerpc-none
  • powerpc64-linux
  • powerpc64le-linux
  • powerpcle-none
  • riscv32-linux
  • riscv32-netbsd
  • riscv32-none
  • riscv64-linux
  • riscv64-netbsd
  • riscv64-none
  • rx-none
  • s390-linux
  • s390-none
  • s390x-linux
  • s390x-none
  • vc4-none
  • wasm32-wasi
  • wasm64-wasi
  • x86_64-cygwin
  • x86_64-darwin
  • x86_64-freebsd
  • x86_64-genode
  • x86_64-linux
  • x86_64-netbsd
  • x86_64-none
  • x86_64-openbsd
  • x86_64-redox
  • x86_64-solaris
  • x86_64-windows