Skip to content

haldensify

Highly Adaptive Lasso Conditional Density Estimation

v0.2.8 · Sep 2, 2025 · MIT + file LICENSE

Description

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

Downloads

361

Last 30 days

10586th

1.2K

Last 90 days

7K

Last year

Trend: -14.3% (30d vs prior 30d)

CRAN Check Status

14 OK
Show all 14 flavors
Flavor Status
r-devel-linux-x86_64-debian-clang OK
r-devel-linux-x86_64-debian-gcc OK
r-devel-linux-x86_64-fedora-clang OK
r-devel-linux-x86_64-fedora-gcc OK
r-devel-macos-arm64 OK
r-devel-windows-x86_64 OK
r-oldrel-macos-arm64 OK
r-oldrel-macos-x86_64 OK
r-oldrel-windows-x86_64 OK
r-patched-linux-x86_64 OK
r-release-linux-x86_64 OK
r-release-macos-arm64 OK
r-release-macos-x86_64 OK
r-release-windows-x86_64 OK

Check History

OK 14 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE Mar 10, 2026

Reverse Dependencies (3)

imports

suggests

Dependency Network

Dependencies Reverse dependencies dplyr tibble ggplot2 data.table matrixStats future.apply assertthat hal9001 origami (>= 1.0.7) stringr rlang scales Rdpack survML txshift CICI haldensify

Version History

new 0.2.8 Mar 10, 2026
updated 0.2.8 ← 0.2.3 diff Sep 1, 2025
updated 0.2.3 ← 0.2.2 diff Feb 8, 2022
updated 0.2.2 ← 0.2.1 diff Jan 27, 2022
updated 0.2.1 ← 0.0.6 diff Oct 7, 2021
updated 0.0.6 ← 0.0.5 diff Sep 15, 2020
new 0.0.5 Mar 13, 2020