Skip to content

Kernel Partial Correlation Coefficient

0packages dependsuggested by 1
3.8Kdownloads / year
–test coverage
13/13flavors OK

Overview

About

Implementations of two empirical versions the kernel partial correlation (KPC) coefficient and the associated variable selection algorithms. KPC is a measure of the strength of conditional association between Y and Z given X, with X, Y, Z being random variables taking values in general topological spaces. As the name suggests, KPC is defined in terms of kernels on reproducing kernel Hilbert spaces (RKHSs). The population KPC is a deterministic number between 0 and 1; it is 0 if and only if Y is conditionally independent of Z given X, and it is 1 if and only if Y is a measurable function of Z and X. One empirical KPC estimator is based on geometric graphs, such as K-nearest neighbor graphs and minimum spanning trees, and is consistent under very weak conditions. The other empirical estimator, defined using conditional mean embeddings (CMEs) as used in the RKHS literature, is also consistent under suitable conditions. Using KPC, a stepwise forward variable selection algorithm KFOCI (using the graph based estimator of KPC) is provided, as well as a similar stepwise forward selection algorithm based on the RKHS based estimator. For more details on KPC, its empirical estimators and its application on variable selection, see Huang, Z., N. Deb, and B. Sen (2022). “Kernel partial correlation coefficient – a measure of conditional dependence” (URL listed below). When X is empty, KPC measures the unconditional dependence between Y and Z, which has been described in Deb, N., P. Ghosal, and B. Sen (2020), “Measuring association on topological spaces using kernels and geometric graphs” doi:10.48550/arXiv.2010.01768, and it is implemented in the functions KMAc() and Klin() in this package. The latter can be computed in near linear time.

Changes in 0.1.4
  • Update for mlpack 4.8.0 API change.

From NEWS.md in the release

Install

Health

CRAN checks
13OK
Slowest check: 1.9 min · r-release-macos-x86_64
Status changes
  • OK13 OK2026-08-05
  • NOTE12 OK, 1 NOTE2026-08-01
  • OK13 OK2026-05-06
  • NOTE12 OK, 2 NOTE2026-03-10
Advisories

none known

Documentation

In release 0.1.4
READMEYes · 1,348 wordsVignettesNoNEWSYes · 100% structured · mentions 0.1.4Citation fileNoWebsiteYes
Help pages
9
Examples that run
100%6 run in a plain check
Exported functions with examples
86%
Documented parameters
83%
Return-value docs
100%
Help pages citing references
22%

Downloads

3.8K
CRAN downloads in the past year
Rank #13,479 · ~10/day · ~317/mo
Daily download trend is not available in this view yet.
36530 days
85390 days
3.8K1 year
Compare downloads with other packages →
Also on78 r2u3 autocran

Repository

4Stars
5Forks
0Open issues
0Open PRs
1Releases
86Commits
5Commit identities
86 commits · Last activity 2026-07-10
Responsiveness
How these are sampled
PRs merged (all time)
100%
Median days to close, 50 most recently updated closed issues
309
Median days to close, 50 most recently updated closed PRs
1

Stars over time

2025-03-14 · 32026-07-07 · 4
PracticesBeta

1 development-tooling and community-health practice detected across 1 family in the upstream repository

Checks run against github.com/zh2395/kpc on 2026-10-18.

Continuous integration (1)
Travis CI (config file)
How this is detected·Detection ruleset v3 (2026-09-26)

Dependencies

Declared dependencies
5 external dependencies (excludes base and recommended)

Installing KPC adds 8 packages (8 with compiled code, 12 MB of source tarballs). Heaviest: data.table 5.7 MB, mlpack 2.0 MB, Rcpp 1.8 MB.

Depends (2)
R >= 4.5.0kernlab
Imports (5)
LinkingTo (0)
none
Suggests (0)
none
Enhances (0)
none
Reverse dependencies
0direct
0indirect
Suggested by 1
Suggests, most downloaded first

Datasets

People & History

People (4)
Author, Maintainer since 0.1.0 (2021)
Contributor
Contributor · added in 0.1.3
Contributor
Releases (5)

Pick two releases to compare their code metrics.

  • 0.1.4Latest
    record
    2026-07-10 · current release · diff ↗
  • 0.1.3
    record
    2026-05-02 · diff ↗
  • R
    R 4.6.0 released · 2026-04-24
  • 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
  • 0.1.2
    record
    2022-10-05 · diff ↗
  • R
    R 4.2.0 released · 2022-04-22
  • 0.1.1
    record
    2021-12-08 · diff ↗
  • R
    R 4.1.0 released · 2021-05-18
  • 0.1.0
    record
    2021-01-08
  • R
    R 4.0.0 released · 2020-04-24

Package metadata

First published
2021-01-08
Total releases
5 / 5 yrs
License
GPL-3 OSI
Minimum R
≥ 4.5.0
Bundled data
15 KB / 2 files
Download size
35 KB

Cite

Cite this package

Run in R for the authors' preferred citation:

citation("KPC")
Huang, Z., Deb, N., Lang, B., & Sen, B. (2026). KPC: Kernel Partial Correlation Coefficient (Version 0.1.4) [Computer software]. https://doi.org/10.32614/CRAN.package.KPC

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

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