Skip to content

haldensify

0.2.8

Highly Adaptive Lasso Conditional Density Estimation

3packages depend
7Kdownloads / year
83.6%test coverage
13/13checks pass

Overview

About
Maintained by Nima HejaziFirst published 2020-03-146 releasesCRAN page ↗GitHub ↗

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

Install

Health

CRAN checks
13OK
Slowest check: 8.5 min · r-devel-linux-x86_64-fedora-clang
Code health
Yes
Tests · ratio 0.32
83.6%
Coverage · measured lines
100%
Documentation · exports
15
Dependencies · direct
Check history
  • OK2026-07-04
    13 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE
  • WARNING2026-07-03
    12 OK · 0 NOTE · 1 WARNING · 0 ERROR · 0 FAILURE
  • OK2026-03-10
    14 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE

Documentation

Documentation
READMEYes · 1,169 wordsVignettesYes · dynamicpkgdown siteNoNEWSYes · 100% structuredCode of conductNoContributing guideNo
Examples that run
100%
Documented parameters
79%
Return-value docs
75%
References docs
0%

Downloads

7K
CRAN downloads in the past year
Rank #10,257 · ~19/day · ~584/mo
Daily download trend is not available in this view yet.
35530 days
1.1K90 days
7K1 year
Compare downloads with other packages →
Also on110 r2u28 autocran

Repository

Repository
19Stars
6Forks
3Open issues
0Open PRs
4Releases
229Commits
3Contributors
machine-learningdensity-estimationnonparametric-regressionhighly-adaptive-lassopropensity-scoreconditional-density-estimatescausal-inferenceinverse-probability-weights
229 commits · Last activity 2026-05-12

Repository practices

Upstream repositoryBeta

7 development-tooling and community-health practices detected across 6 families in the upstream repository

Checks run against github.com/nhejazi/haldensify on 2026-07-19.

Continuous integration (1)
GitHub Actions
Reproducibility and dev environment (1)
Makefile
CRAN release process (2)
cran-comments.mdCRAN-SUBMISSION
Docs source (1)
README.Rmd
Show all practices
Lint, format, editor (1)
RStudio project
Coverage (1)
Codecov
How this is detected·Detection ruleset v1 (2026-07-18)

Dependencies

Declared dependencies
18 external dependencies (excludes base and recommended)
Depends (1)
R >= 3.2.0
LinkingTo (0)
none
Enhances (0)
none
Reverse dependencies
3direct
1indirect

Code & Tests

People & History

People (4)
Maintainer (1)
Author, Maintainer, Copyright holder
Authors (3)
Author, Maintainer, Copyright holder
Author, Thesis advisor
Contributors (1)
Contributor · added in 0.2.1
Copyright holders (1)
Author, Maintainer, Copyright holder
Package Timeline

6 releases. Pick two to compare their code metrics. R releases are shown for context.

  • R
    R 4.6.0 released · 2026-04-24
  • 0.2.8Latest
    2025-09-02 · current release · diff ↗
  • R
    R 4.5.0 released · 2025-04-11
  • R
    R 4.4.0 released · 2024-04-24
  • R
    R 4.3.0 released · 2023-04-21
  • R
    R 4.2.0 released · 2022-04-22
  • 0.2.3
    2022-02-09 · diff ↗
  • 0.2.2
    2022-01-28 · diff ↗
  • unarchivedReturned to CRAN
    2022-01-28
  • archivedRemoved from CRAN
    2021-11-03
    requires archived package 'hal9001',
  • 0.2.1
    2021-10-08 · diff ↗
  • R
    R 4.1.0 released · 2021-05-18
  • 0.0.6
    2020-09-16 · diff ↗
  • R
    R 4.0.0 released · 2020-04-24
  • 0.0.5
    2020-03-14
  • R
    R 3.6.0 released · 2019-04-26

Package metadata

First published
2020-03-14
Total releases
6 / 6 yrs
License
MIT + file LICENSE OSI
Minimum R
≥ 3.2.0
Download size
179 KB
Installed size
not tracked yet
With dependencies
not tracked yet
Appears in task views
Report a problem with this page →