haldensify: Highly Adaptive Lasso Conditional Density Estimation

An algorithm for flexible conditional density estimation based on application of pooled hazard regression to an artificial repeated measures dataset constructed by discretizing the support of the outcome variable. To facilitate flexible estimation of the conditional density, the highly adaptive lasso, a non-parametric regression function shown to estimate cadlag (RCLL) functions at a suitably fast convergence rate, is used. The use of pooled hazards regression for conditional density estimation as implemented here was first described for by Díaz and van der Laan (2011) <doi:10.2202/1557-4679.1356>. Building on the conditional density estimation utilities, non-parametric inverse probability weighted (IPW) estimators of the causal effects of additive modified treatment policies are implemented, using conditional density estimation to estimate the generalized propensity score. Non-parametric IPW estimators based on this can be coupled with undersmoothing of the generalized propensity score estimator to attain the semi-parametric efficiency bound (per Hejazi, Díaz, and van der Laan <doi:10.48550/arXiv.2205.05777>).

Package details

AuthorNima Hejazi [aut, cre, cph] (ORCID: <https://orcid.org/0000-0002-7127-2789>), David Benkeser [aut] (ORCID: <https://orcid.org/0000-0002-1019-8343>), Mark van der Laan [aut, ths] (ORCID: <https://orcid.org/0000-0003-1432-5511>), Rachael Phillips [ctb] (ORCID: <https://orcid.org/0000-0002-8474-591X>)
MaintainerNima Hejazi <nh@nimahejazi.org>
LicenseMIT + file LICENSE
Version0.2.8
URL https://codex.nimahejazi.org/haldensify/
Package repositoryView on CRAN
Installation Install the latest version of this package by entering the following in R:
install.packages("haldensify")

Try the haldensify package in your browser

Any scripts or data that you put into this service are public.

haldensify documentation built on Sept. 2, 2025, 9:09 a.m.