Skip to content

kdensity

1.2.0Package record

Kernel Density Estimation with Parametric Starts and Asymmetric Kernels

2packages dependsuggested by 1
9Kdownloads / year
99.1%test coverage
11/13flavors OK

Overview

About

Handles univariate non-parametric density estimation with parametric starts and asymmetric kernels in a simple and flexible way. Kernel density estimation with parametric starts involves fitting a parametric density to the data before making a correction with kernel density estimation, see Hjort & Glad (1995) doi:10.1214/aos/1176324627. Asymmetric kernels make kernel density estimation more efficient on bounded intervals such as (0, 1) and the positive half-line. Supported asymmetric kernels are the gamma kernel of Chen (2000) doi:10.1023/A:1004165218295, the beta kernel of Chen (1999) doi:10.1016/S0167-9473(99)00010-9, and the copula kernel of Jones & Henderson (2007) doi:10.1093/biomet/asm068. User-supplied kernels, parametric starts, and bandwidths are supported.

Changes in 1.2.0
  • New closed-form bandwidth selector "HS", based on Hallberg Szabadváry's beta reference rule (arXiv:2601.19553). It is now the default bandwidth for the bias-corrected beta kernel with a uniform or constant start, with a fallback heuristic when the rule's moment conditions are not satisfied.
  • RHE no longer depends on the EQL package; the Hermite polynomials are evaluated inline (matches the previous numeric output to ~1e-12).
  • Trimmed dependencies: EQL removed from Imports; assertthat, testthat, extraDistr, and other build-time helpers no longer required at install time.
  • Internal cleanup: the R/ source layout is consolidated into bandwidths.R, kernels.R, starts.R, and helpers.R; no user-visible API changes.

From NEWS.md in the release

Install

Health

CRAN checks
2NOTE11OK
Check messages
NOTERd contentsr-devel-linux-x86_64-debian-clang, r-devel-linux-x86_64-debian-gcc
Rd files without \usage:
  ‘bandwidths.Rd’
\arguments should not be documented without \usage.

CRAN check page ↗

Slowest check: 2.1 min · r-oldrel-windows-x86_64
Status changes
  • NOTE11 OK, 2 NOTENow
  • NOTE12 OK, 1 NOTE2026-07-11
  • OK13 OK2026-06-09
  • WARNING12 OK, 1 WARNING2026-06-08
  • OK14 OK2026-03-10
Advisories

none known

Documentation

In release 1.2.0
READMEYes · 953 wordsVignettesYes · 1 · dynamicNEWSYes · 100% structured · mentions 1.2.0Citation fileNoWebsitenot declared in DESCRIPTION
Help pages
15 (10 internal)
Examples that run
100%5 run in a plain check
Exported functions with examples
100%
Documented parameters
100%
Return-value docs
100%
Help pages citing references
20%

Downloads

9K
CRAN downloads in the past year
Rank #5,038 · ~25/day · ~748/mo
Daily download trend is not available in this view yet.
75130 days
1.6K90 days
9K1 year
Compare downloads with other packages →
Also on156 r2u4 autocran

Repository

17Stars
4Forks
0Open issues
0Open PRs
6Releases
275Commits
3Commit identities
non-parametrickernel-density-estimationasymmetric-kernelsdensity-estimation
275 commits · Last activity 2026-05-05 · 0% stars, 30d
Responsiveness
How these are sampled
PRs merged (all time)
100%
Median days to close, 50 most recently updated closed issues
6
Median days to close, 50 most recently updated closed PRs
0

Stars over time

2025-02-10 · 162026-07-07 · 17
PracticesBeta

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

Checks run against github.com/jonasmoss/kdensity on 2026-10-18.

Continuous integration (2)
GitHub ActionsR CMD check workflow

The R CMD check workflow runs on Linux, macOS and Windows, and on R-devel

Docs source (1)
README.Rmd
CRAN release process (1)
cran-comments.md
Lint, format, editor (1)
RStudio project
Show all practicesHide 1 practice
Git structural (1)
.gitattributes
How this is detected·Detection ruleset v3 (2026-09-26)
AI coding toolsBeta

This repository shows signs of AI coding tools.

  • Codexfirst seen 2026-05-04
    Named in .gitignore: .codex
  • Claude Codefirst seen 2026-05-04
    Named in .Rbuildignore: .claude
    Pull request it wrote: opened by a project member
    Commits: at least 5 crediting it in the message
  • Gemini CLIfirst seen on or before 2026-07-18
    Config: a file or ignore line, not recorded which
Shared conventions any agent may read, so they name no particular tool.
Seen in the repository: AGENTS.md
Models named in its commits
  • Claude Opus 4.75 commits · May 2026
Counts are commits, not lines of code. Commits by a tool's accounts count once across all of its accounts. Commits crediting it are the largest count among its credit lines, a minimum.How this is detected·Detection ruleset v4 (updated 2026-09-27)

Dependencies

Declared dependencies
5 external dependencies (excludes base and recommended)

Installing kdensity adds 45 packages (28 with compiled code, 27 MB of source tarballs). Heaviest: poweRlaw 4.3 MB, nloptr 2.1 MB, Rcpp 1.8 MB.

Depends (0)
none
Imports (1)
LinkingTo (0)
none
Enhances (0)
none
Reverse dependencies
2direct
0indirect
Imports 2
Suggested by 1
Depends, Imports or LinkingTo, most downloaded first
Suggests, most downloaded first

People & History

People (2)
Author, Maintainer since 1.0.0 (2018)
Contributor
Releases (5)

Pick two releases to compare their code metrics.

  • 1.2.0Latest
    record
    2026-05-04 · current release · diff ↗
  • R
    R 4.6.0 released · 2026-04-24
  • R
    R 4.5.0 released · 2025-04-11
  • 1.1.1
    record
    2025-03-04 · diff ↗
  • 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
  • R
    R 4.1.0 released · 2021-05-18
  • 1.1.0
    record
    2020-09-30 · diff ↗
  • R
    R 4.0.0 released · 2020-04-24
  • 1.0.1
    record
    2019-07-11 · diff ↗
  • R
    R 3.6.0 released · 2019-04-26
  • R
    R 3.5.0 released · 2018-04-23
  • 1.0.0
    record
    2018-02-27
  • R
    R 3.4.0 released · 2017-04-21

Package metadata

First published
2018-02-27
Total releases
5 / 8 yrs
License
MIT + file LICENSE OSI
Download size
195 KB

Cite

Cite this package

Run in R for the authors' preferred citation:

citation("kdensity")
Moss, J., & Tveten, M. (2026). kdensity: Kernel Density Estimation with Parametric Starts and Asymmetric Kernels (Version 1.2.0) [Computer software]. https://doi.org/10.32614/CRAN.package.kdensity

This package has no citation file, so citation() returns this entry built from DESCRIPTION.

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 kdensity version 1.2.0 [Data set]. HJJB, LLC. Data release v2026-10-22. https://doi.org/10.5281/zenodo.21843040

From data release v2026-10-22, 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