Skip to content

lpdensity

3.0.1Package record

Local Polynomial Density Estimation and Inference

2packages depend
29.5Kdownloads / year
53.6%test coverage
13/13flavors OK

Overview

About

Implements local polynomial distribution and density methods for point estimation, inference and bandwidth selection, documented in Cattaneo, Jansson and Ma (2020) doi:10.1080/01621459.2019.1635480, Cattaneo, Jansson and Ma (2022) doi:10.18637/jss.v101.i02, and Cattaneo, Jansson and Ma (2024) doi:10.1016/j.jeconom.2021.01.006. lpdensity() constructs local polynomial distribution and density estimators with robust bias-corrected inference, and lpbwdensity() implements data-driven bandwidth selection.

Install

Health

CRAN checks
13OK
Slowest check: 2.0 min · r-oldrel-windows-x86_64
Status changes
  • OK13 OK2026-08-05
  • NOTE12 OK, 1 NOTE2026-08-01
  • OK13 OK2026-05-24
  • ERROR11 OK, 2 ERROR2026-05-22
  • OK14 OK2026-03-10
Advisories

none known

Documentation

In release 3.0.1
READMENoVignettesNoNEWSNoCitation fileYes · cites a publicationWebsiteYes
Cites a JSS article
Help pages
24 (11 internal)includes a package overview page
Examples that run
100%11 run in a plain check
Exported functions with examples
67%
Documented parameters
94%
Return-value docs
100%
Help pages citing references
13%

Downloads

29.5K
CRAN downloads in the past year
Rank #2,388 · ~81/day · ~2.5K/mo
Daily download trend is not available in this view yet.
3.3K30 days
6.9K90 days
29.5K1 year
Compare downloads with other packages →
Also on223 r2u2 autocran81 c2d4u

Repository

5Stars
3Forks
0Open issues
0Open PRs
0Releases
72Commits
2Commit identities
72 commits · Last activity 2026-05-27 · 0% stars, 30d
Responsiveness
How these are sampled
PRs merged (all time)
not measured
Median days to close, 50 most recently updated closed issues
0
Median days to close, 50 most recently updated closed PRs
not measured

Stars over time

2025-07-03 · 42026-08-09 · 5
PracticesBeta

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

Checks run against github.com/nppackages/lpdensity on 2026-10-22.

Continuous integration (2)
GitHub ActionsR CMD check workflow

The R CMD check workflow runs on Linux

Governance and community (3)
Issue templatesPR templateSecurity policy
Docs source (1)

GitHub Pages site last deployed 2022-05-26

Git structural (1)
.gitattributes
How this is detected·Detection ruleset v4 (2026-10-20)

Dependencies

Declared dependencies
2 external dependencies (excludes base and recommended)

Installing lpdensity adds 17 packages (7 with compiled code, 14 MB of source tarballs). Heaviest: ggplot2 6.0 MB, isoband 1.5 MB, farver 1.2 MB.

Depends (1)
R >= 3.1
Imports (2)
LinkingTo (0)
none
Suggests (1)
Enhances (0)
none
Reverse dependencies
2direct
0indirect
Imports 2
Depends, Imports or LinkingTo, most downloaded first

People & History

People (3)
Author, Maintainer since 3.0 (2026)
Author

Previously maintained by Xinwei Ma (0.1 to 2.5).

Listed in earlier versions (1)
Cattaneo
no longer listed · 2.5
Releases (16)

Pick two releases to compare their code metrics.

Show 11 earlier eventsHide 11 earlier events

Package metadata

First published
2017-04-11
Total releases
16 / 9 yrs
License
GPL-3 OSI
Minimum R
≥ 3.1
Download size
33 KB

Cite

Cite this package

Run in R for the authors' entry:

citation("lpdensity")

The package provides a citation file, so citation() returns the authors' own entry.

It points to 10.18637/jss.v101.i02.

Cite the R Observatory

For a number measured here: a download total, a coverage figure, an archival date.

APA

Balamuta, J. J. (2026). R Observatory: Metrics for lpdensity version 3.0.1 [Data set]. HJJB, LLC. Data release v2026-10-23. https://doi.org/10.5281/zenodo.21843040

From data release v2026-10-23, which the citation names so these numbers can be found later. More on citing and the projects behind them.

Report a problem with this page →

Privacy choices

These apply to this browser and are stored on this device only. Nothing about your choice is sent to us.

Read the privacy policy