Skip to main content

bayes_traj

Project description

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.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

bayes_traj-1.0.7.tar.gz (76.5 kB view details)

Uploaded Source

File details

Details for the file bayes_traj-1.0.7.tar.gz.

File metadata

  • Download URL: bayes_traj-1.0.7.tar.gz
  • Upload date:
  • Size: 76.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.0.1 CPython/3.10.16

File hashes

Hashes for bayes_traj-1.0.7.tar.gz
Algorithm Hash digest
SHA256 3bec5d6d9af1fc3ff523356188f54b01c3636fa218a952076bd48f6374f9b2e7
MD5 2b0ac041d218f0cac6076ce8c09fba5e
BLAKE2b-256 9804333656b4c00eac5a8ab5d7a2b569c7c9160036f94d73322d1309cadeef09

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page