Skip to content

Pólya Tree Type Models

0packages depend
696downloads / year
71.6%test coverage
13/13flavors OK

Overview

About

Fits Bayesian nonparametric models based on Pólya tree processes, including adaptive Pólya trees, Markov adaptive Pólya trees, optional Pólya trees, and their conditional-density counterparts. Methods are described in Ma (2017) doi:10.1214/16-BA1021, Ma (2017) doi:10.1214/17-EJS1254, and Wong and Ma (2010) doi:10.1214/09-AOS755.

Changes in 1.0.1

Correctness

  • Fixes undefined behavior in conditional hierarchical MAP partition output caused by using an unsigned counter with -1 as its initial sentinel.
  • Uses 64-bit node offsets to avoid truncation when indexing larger trees.
  • Rejects predictor/response dimension and shrinkage-state configurations that exceed the capacity of the internal partition representation.

Validation

  • Adds regression checks for conditional partition boundaries and supported input capacities.
  • Audits the remaining bit shifts and verifies the package examples, tests, and demos with undefined-behavior and address sanitizers.

From NEWS.md in the release

Install

Health

CRAN checks
13OK
Slowest check: 3.3 min · r-devel-windows-x86_64
Status changes
  • OK13 OK2026-09-08
  • ERROR12 OK, 1 ERROR2026-09-07
  • OK13 OK2026-08-05
  • NOTE12 OK, 1 NOTE2026-08-01
  • OK8 OK2026-07-23
Advisories

none known

Documentation

In release 1.0.1
READMEYes · 365 wordsVignettesNoNEWSYes · 100% structured · mentions 1.0.1Citation fileYes · cites a publicationWebsitenot declared in DESCRIPTION
Help pages
7 (1 internal)includes a package overview page
Examples that run
100%6 run in a plain check
Exported functions with examples
100%
Documented parameters
56%
Return-value docs
100%
Help pages citing references
43%

Also includes 7 demo scripts (run with demo())

Downloads

696
CRAN downloads in the past year
Rank #24,022 · ~2/day · ~58/mo
Daily download trend is not available in this view yet.
17030 days
53190 days
6961 year
Compare downloads with other packages →
Also on41 r2u3 autocran

Repository

1Stars
3Forks
0Open issues
0Open PRs
0Releases
74Commits
5Commit identities
74 commits · Last activity 2026-07-22
Responsiveness
How these are sampled
PRs merged (all time)
67%
Median days to close, 50 most recently updated closed issues
not measured
Median days to close, 50 most recently updated closed PRs
0
PracticesBeta

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

Checks run against github.com/mastatlab/ptt on 2026-10-21.

Continuous integration (1)
GitHub Actions
CRAN release process (1)
cran-comments.md
Lint, format, editor (1)
RStudio project
How this is detected·Detection ruleset v4 (2026-10-20)

Dependencies

Declared dependencies
3 external dependencies (excludes base and recommended)

Installing PTT adds 2 packages (2 with compiled code, 2.8 MB of source tarballs). Heaviest: Rcpp 1.8 MB, RcppArmadillo 1.0 MB.

Depends (0)
none
Imports (1)
LinkingTo (2)
Suggests (0)
none
Enhances (0)
none
Reverse dependencies
0direct
0indirect

Nothing depends on this yet.

People & History

People (1)
Author, Maintainer since 1.0 (2026)
Releases (2)

Pick two releases to compare their code metrics.

  • 1.0.1Latest
    record
    2026-07-23 · current release · diff ↗
  • 1.0
    record
    2026-07-22
  • R
    R 4.6.0 released · 2026-04-24

Package metadata

First published
2026-07-22
Total releases
2 / 1 yrs
License
GPL (>= 3) OSI
Download size
37 KB

Cite

Cite this package

Run in R for the authors' entry:

citation("PTT")

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

It points to 10.1214/16-ba1021, 10.1214/17-ejs1254, 10.1214/09-aos755.

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

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