Skip to content

kdensity

1.2.0

Kernel Density Estimation with Parametric Starts and Asymmetric Kernels

3packages depend
11.3Kdownloads / year
99.1%test coverage
11/13checks pass

Overview

About
Maintained by Jonas MossFirst published 2018-02-275 releasesCRAN page ↗GitHub ↗

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.

Install

Health

CRAN checks
2NOTE11OK
Failing flavors
  • NOTE r-devel-linux-x86_64-debian-clang
  • NOTE r-devel-linux-x86_64-debian-gcc
Slowest check: 2.1 min · r-devel-linux-x86_64-fedora-clang
Code health
Yes
Tests · ratio 0.19
99.1%
Coverage · measured lines
100%
Documentation · exports
1
Dependencies · direct
Check history
  • NOTE2026-07-11
    12 OK · 1 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE
  • OK2026-06-09
    13 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE
  • WARNING2026-06-08
    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 · 953 wordsVignettesYes · dynamicpkgdown siteNoNEWSYes · 100% structuredCode of conductNoContributing guideNo
Examples that run
100%
Documented parameters
100%
Return-value docs
100%
References docs
20%

Downloads

11.3K
CRAN downloads in the past year
Rank #5,514 · ~31/day · ~943/mo
Daily download trend is not available in this view yet.
31530 days
1.5K90 days
11.3K1 year
Compare downloads with other packages →
Also on130 r2u8 autocran

Repository

Repository
17Stars
4Forks
0Open issues
0Open PRs
6Releases
275Commits
3Contributors
non-parametrickernel-density-estimationasymmetric-kernelsdensity-estimation
275 commits · Last activity 2026-05-05 · 0% stars, 30d

Stars over time

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

Repository practices

Upstream repositoryBeta

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

Checks run against github.com/jonasmoss/kdensity on 2026-08-03.

Continuous integration (1)
GitHub Actions
CRAN release process (1)
cran-comments.md
Docs source (1)
README.Rmd
Lint, format, editor (1)
RStudio project
Show all practices
Git structural (1)
.gitattributes
How this is detected·Detection ruleset v1 (2026-07-18)

Development tooling

AI-assisted toolingBeta

Uses AI-assisted development tooling (declared in repo)

Earliest detected marker: codex on 2026-05-04

codexclaudegemini

Most recent: gemini on 2026-07-18

Evidence
  • agents-md: on 2026-05-04 · evidence D
  • codex: on 2026-05-04 · evidence D
  • claude: on 2026-05-04 · evidence B, D
  • gemini: on or before 2026-07-18 · evidence D
How this is detected·Detection ruleset v2 (updated 2026-07-29)

Dependencies

Declared dependencies
5 external dependencies (excludes base and recommended)
Depends (0)
none
Imports (1)
LinkingTo (0)
none
Enhances (0)
none
Reverse dependencies
3direct
0indirect

Code & Tests

People & History

People (2)
Maintainer (1)
Author, Maintainer
Authors (1)
Author, Maintainer
Contributors (1)
Contributor
Package Timeline

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

  • 1.2.0Latest
    2026-05-05 · current release · diff ↗
  • R
    R 4.6.0 released · 2026-04-24
  • R
    R 4.5.0 released · 2025-04-11
  • 1.1.1
    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
    2020-09-30 · diff ↗
  • R
    R 4.0.0 released · 2020-04-24
  • 1.0.1
    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
    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
218 KB
Installed size
not tracked yet
With dependencies
not tracked yet

Cite

Cite this package

Start here. This is the citation for the package itself.

citation("kdensity")

CRAN DOI

https://doi.org/10.32614/CRAN.package.kdensity

BibTeX, derived from DESCRIPTION

@Manual{kdensity,
  title  = {kdensity: Kernel Density Estimation with Parametric Starts and Asymmetric
Kernels},
  author = {Moss, Jonas and Tveten, Martin},
  year   = {2026},
  note   = {R package version 1.2.0},
  doi    = {10.32614/CRAN.package.kdensity},
  url    = {https://CRAN.R-project.org/package=kdensity}
}

Derived from the package DESCRIPTION, not from a citation file the authors wrote. If they publish one later, prefer it.

This is the citation for the package. It is not a citation for the R Observatory.

Cite this page

Use this when the claim is about a measurement on this page.

BibTeX

@misc{robservatorykdensity,
  author    = {Balamuta, James Joseph},
  title     = {{R} {Observatory}: Metrics for {kdensity} version 1.2.0},
  year      = {2026},
  publisher = {HJJB, LLC},
  url       = {https://r-observatory.thecoatlessprofessor.com/packages/kdensity},
  note      = {Data set. Data release v2026-08-05}
}

APA

Balamuta, J. J. (2026). R Observatory: Metrics for kdensity version 1.2.0 [Data set]. HJJB, LLC. Data release v2026-08-05. https://r-observatory.thecoatlessprofessor.com/packages/kdensity

RIS

TY  - DATA
AU  - Balamuta, James Joseph
TI  - R Observatory: Metrics for kdensity version 1.2.0
PY  - 2026
PB  - HJJB, LLC
N1  - Data release v2026-08-05
UR  - https://r-observatory.thecoatlessprofessor.com/packages/kdensity
ER  - 

In prose

These package metrics were obtained from the R Observatory (Balamuta, 2026), data release v2026-08-05, https://r-observatory.thecoatlessprofessor.com/packages/kdensity.

Bound to data release v2026-08-05, which is what makes the numbers on this page reproducible. See how to cite.

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