Learn R Programming

hdm: High-Dimensional Metrics

Implementation of selected high-dimensional statistical and econometric methods for estimation and inference. Efficient estimators and uniformly valid confidence intervals for various low-dimensional causal/ structural parameters are provided which appear in high-dimensional approximately sparse models. Including functions for fitting heteroscedastic robust Lasso regressions with non-Gaussian errors and for instrumental variable (IV) and treatment effect estimation in a high-dimensional setting. Moreover, the methods enable valid post-selection inference and rely on a theoretically grounded, data-driven choice of the penalty.

Getting Started with hdm

R is an open source software project and can be freely downloaded from the CRAN website along with its associated documentation. There are two options to install the R package hdm - either installation of the development version or the stable release available at CRAN.

Development Version

The current development version of the hdm package is maintained in this repository and can be installed by the command devtools::install_github("MartinSpindler/hdm"). Note that the devtools package is required for this command.

Stable Release

The stable package release is available at CRAN. The stable release version can be installed by typing install.packages("hdm") in R.

Getting Started: Vignette

After installation, users can get started by following the package vignette.

References

V. Chernozhukov, C. Hansen and M. Spindler (2016). "hdm: High-dimensional metrics." arXiv preprint arXiv:1608.00354 (2016), available online.

A. Belloni, D. Chen, V. Chernozhukov and C. Hansen (2012). Sparse models and methods for optimal instruments with an application to eminent domain. Econometrica 80 (6), 2369-2429.

A. Belloni, V. Chernozhukov and C. Hansen (2013). Inference for high-dimensional sparse econometric models. In Advances in Economics and Econometrics: 10th World Congress, Vol. 3: Econometrics, Cambridge University Press: Cambridge, 245-295.

A. Belloni, V. Chernozhukov, C. Hansen (2014). Inference on treatment effects after selection among high-dimensional controls. The Review of Economic Studies 81(2), 608-650.

Copy Link

Version

Install

install.packages('hdm')

Monthly Downloads

1,455

Version

0.3.2

License

MIT + file LICENSE

Maintainer

Last Published

February 14th, 2024

Functions in hdm (0.3.2)

p_adjust

Multiple Testing Adjustment of p-values for S3 objects rlassoEffects and lm
rlassoIVselectZ

Instrumental Variable Estimation with Lasso
print_coef

Printing coefficients from S3 objects rlassoEffects
hdm-package

hdm: High-Dimensional Metrics
summary.rlassoEffects

Summarizing rlassoEffects fits
print.rlassologitEffects

Methods for S3 object rlassologitEffects
rlassoIVselectX

Instrumental Variable Estimation with Selection on the exogenous Variables by Lasso
pension

Pension 401(k) data set
rlasso

rlasso: Function for Lasso estimation under homoscedastic and heteroscedastic non-Gaussian disturbances
tsls

Two-Stage Least Squares Estimation (TSLS)
print.tsls

Methods for S3 object tsls
rlassoIV

Post-Selection and Post-Regularization Inference in Linear Models with Many Controls and Instruments
cps2012

cps2012 data set
rlassologitEffects

rigorous Lasso for Logistic Models: Inference
rlassoEffects

rigorous Lasso for Linear Models: Inference
rlassologit

rlassologit: Function for logistic Lasso estimation
coef.rlassoIVselectX

Coefficients from S3 objects rlassoIVselectX
LassoShooting.fit

Shooting Lasso
EminentDomain

Eminent Domain data set
coef.rlassoIVselectZ

Coefficients from S3 objects rlassoIVselectZ
coef.rlassoIV

Coefficients from S3 objects rlassoIV
coef.rlassoEffects

Coefficients from S3 objects rlassoEffects
rlassoATE

Functions for estimation of treatment effects
lambdaCalculation

Function for Calculation of the penalty parameter
print.rlassoIV

Methods for S3 object rlassoIV
print.rlasso

Methods for S3 object rlasso
print.rlassoIVselectX

Methods for S3 object rlassoIVselectX
print.rlassoEffects

Methods for S3 object rlassoEffects
BLP

BLP data set
AJR

AJR data set
Growth Data

Growth data set
print.rlassoTE

Methods for S3 object rlassoTE
print.rlassoIVselectZ

Methods for S3 object rlassoIVselectZ
predict.rlassologit

Methods for S3 object rlassologit