Skip to main content

Introduction

bayes_traj is a software package written in Python that provides routines for performing Bayesian trajectory modeling of longitudinal data. Multiple, longitudinally observed target variables -- continuous, binary, or a combination -- can be modeled simultaneously. Per-trajectory random effects can also be modeled for continuous target variables. This package also provides command-line tools that facilitate spefication of Bayesian priors, enable visualization of trajectory modeling results, and compute summary and model fit statistics.

Installation

In order to install the package, type the folowing in the terminal:

$ pip install bayes_traj

Overview

bayes_traj provides several command-line tools:

  • generate_prior -- used to speficy Bayesian priors for use the trajectory modeling
  • viz_data_prior_draws -- provides visualization of random draws from the prior
  • bayes_traj_main -- performs Bayesian trajectory modeling using a prior file
  • viz_model_trajs -- provides visualization of trajectories fit using bayes_traj_main
  • sumarize_traj_model -- prints model summary and fit statistics given a model file produce by bayes_traj_main
  • assign_trajectory -- writes a data file with appended trajectory assignment information given an input data file and a model file generated by the bayes_traj_main tool

Each of these tools can be run with the -h flag for additional usage information.

For additional documentation, see https://acil-bwh.github.io/bayes_traj/index.html

Tests

To run all unit tests, type the following in the package root directory:

$ pytest

Contribute

Please read our contribution guidelines.

Metadata

Release files for bayes-traj 1.1.7

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for bayes-traj 1.1.7
File Size Uploaded Provenance
bayes_traj-1.1.7.tar.gz 96.7 kB Without provenance Details

Release files / bayes_traj-1.1.7.tar.gz

Download URL bayes_traj-1.1.7.tar.gz
Size 96.7 kB
Tags Source
SHA-256 checksum
How to use checksums
9da4a093747ad3973b06d44acc3a703d92271d6ab69702fcc3327b067dd630de
BLAKE2b-256 checksum
How to use checksums
f0cd5566a4eb9ee29783995f05a0b4c57462d2e3a6f532ece0f145f918b2ed5e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.0.1 CPython/3.10.16

Security for bayes-traj 1.1.7

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

1.1.7 This release

1 release file No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page