bkp

Beta Kernel Processes Modeling

https://github.com/jiangyan-zhao/bkp

Science Score: 36.0%

This score indicates how likely this project is to be science-related based on various indicators:

  • CITATION.cff file
  • codemeta.json file
    Found codemeta.json file
  • .zenodo.json file
    Found .zenodo.json file
  • DOI references
  • Academic publication links
    Links to: arxiv.org
  • Academic email domains
  • Institutional organization owner
  • JOSS paper metadata
  • Scientific vocabulary similarity
    Low similarity (20.3%) to scientific vocabulary

Keywords

bayesian-nonparametric-models beta-binomial beta-kernel-process dirichlet-kernel-process dirichlet-multinomial
Last synced: 7 months ago · JSON representation

Repository

Beta Kernel Processes Modeling

Basic Info
  • Host: GitHub
  • Owner: Jiangyan-Zhao
  • Language: R
  • Default Branch: master
  • Homepage:
  • Size: 8.87 MB
Statistics
  • Stars: 1
  • Watchers: 1
  • Forks: 0
  • Open Issues: 0
  • Releases: 2
Topics
bayesian-nonparametric-models beta-binomial beta-kernel-process dirichlet-kernel-process dirichlet-multinomial
Created almost 2 years ago · Last pushed 7 months ago
Metadata Files
Readme Changelog

README.Rmd

---
output: github_document
---

```{r, include = FALSE}
knitr::opts_chunk$set(
  collapse = TRUE,
  comment = "#>",
  fig.path = "man/figures/README-",
  out.width = "100%"
)
```

# BKP: An R Package for Beta Kernel Process Modeling 


[![CRAN status](https://www.r-pkg.org/badges/version/BKP)](https://cran.r-project.org/package=BKP)
![Total downloads](https://cranlogs.r-pkg.org/badges/grand-total/BKP)
[![R-CMD-check](https://github.com/Jiangyan-Zhao/BKP/actions/workflows/R-CMD-check.yaml/badge.svg)](https://github.com/Jiangyan-Zhao/BKP/actions/workflows/R-CMD-check.yaml)
[![Codecov test coverage](https://codecov.io/gh/Jiangyan-Zhao/BKP/graph/badge.svg)](https://app.codecov.io/gh/Jiangyan-Zhao/BKP)



We present **BKP**, a user-friendly and extensible **R** package that implements the **Beta Kernel Process (BKP)**---a fully nonparametric and computationally efficient framework for modeling spatially varying binomial probabilities. The BKP model combines localized kernel-weighted likelihoods with conjugate beta priors, resulting in closed-form posterior inference without requiring latent variable augmentation or intensive MCMC sampling. The package supports binary and aggregated binomial responses, allows flexible choices of kernel functions and prior specification, and provides loss-based kernel hyperparameter tuning procedures. In addition, BKP extends naturally to the **Dirichlet Kernel Process (DKP)** for modeling spatially varying multinomial data. 


## Features

- ✅ Bayesian modeling for binomial and multinomial count data
- ✅ Kernel-based local information sharing
- ✅ Posterior prediction and uncertainty quantification
- ✅ Class label prediction using threshold or MAP rule
- ✅ Simulation from posterior (Beta or Dirichlet) distributions

## Installation

You can install the stable version of **BKP** from [CRAN](https://CRAN.R-project.org/package=BKP) with:

```{r, eval=FALSE}
install.packages("BKP")
```

Or install the development version from [GitHub](https://github.com/Jiangyan-Zhao/BKP) with:

```{r, eval=FALSE}
# install.packages("pak")
pak::pak("Jiangyan-Zhao/BKP")
```

## Documentation

The statistical foundations and example applications are described in the following vignette:

* [**BKP User Guide (PDF)**](https://github.com/Jiangyan-Zhao/BKP/blob/master/doc/vignettes.pdf)


## Citing

If you use **BKP** in your work, please cite both the methodology paper and the R package:

- **Methodology paper**  
  Zhao, J., Qing, K., and Xu, J. (2025). *BKP: An R Package for Beta Kernel Process Modeling.*  
  arXiv:2508.10447.   

- **R package**  
  Zhao, J., Qing, K., and Xu, J. (2025). *BKP: Beta Kernel Process Modeling.*  
  R package version 0.1.1.   

You can also obtain the citation information directly within R:

```r
citation("BKP")
```

## Development

The BKP package is under active development. Contributions and suggestions are welcome via GitHub issues or pull requests.

Owner

  • Name: Jiangyan Zhao
  • Login: Jiangyan-Zhao
  • Kind: user
  • Location: Shanghai, China
  • Company: East China Normal University

Ph.D. Candidate in Statistics

GitHub Events

Total
  • Create event: 2
  • Release event: 1
  • Issues event: 3
  • Watch event: 1
  • Delete event: 1
  • Push event: 64
Last Year
  • Create event: 2
  • Release event: 1
  • Issues event: 3
  • Watch event: 1
  • Delete event: 1
  • Push event: 64

Packages

  • Total packages: 1
  • Total downloads:
    • cran 284 last-month
  • Total dependent packages: 0
  • Total dependent repositories: 0
  • Total versions: 2
  • Total maintainers: 1
cran.r-project.org: BKP

Beta Kernel Process Modeling

  • Versions: 2
  • Dependent Packages: 0
  • Dependent Repositories: 0
  • Downloads: 284 Last month
Rankings
Dependent packages count: 25.8%
Dependent repos count: 31.7%
Average: 47.7%
Downloads: 85.6%
Maintainers (1)
Last synced: 7 months ago

Dependencies

DESCRIPTION cran
  • R >= 3.5.0 depends
  • gridExtra * imports
  • lattice * imports
  • optimx * imports
  • tgp * imports
  • stats * suggests
  • testthat >= 3.0.0 suggests
.github/workflows/R-CMD-check.yaml actions
  • actions/cache v4 composite
  • actions/checkout v4 composite
  • r-lib/actions/check-r-package v2 composite
  • r-lib/actions/setup-pandoc v2 composite
  • r-lib/actions/setup-r v2 composite
  • r-lib/actions/setup-r-dependencies v2 composite
.github/workflows/test-coverage.yaml actions
  • actions/checkout v4 composite
  • actions/upload-artifact v4 composite
  • codecov/codecov-action v5 composite
  • r-lib/actions/setup-r v2 composite
  • r-lib/actions/setup-r-dependencies v2 composite