Skip to content
/ bhpm Public
forked from rcarragh/bhpm

Bayesian Hierarchical Possion Models for Mulitple Grouped Outcomes with Clustering

Notifications You must be signed in to change notification settings

HDRUK/bhpm

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

output
github_document

Bayesian Hierarchical Poisson Models for Multiple Grouped Outcomes with Clustering

bhpm was developed for the Precision Drug Theraputics: Risk Prediction in Pharmacoepidemiology project as part of a Rutherford Fund Fellowship at Health Data Research (UK), Medical Research Council (UK) award reference MR/S003967/1 (https://gtr.ukri.org/).

The goal of bhpm is to investigate associations between multiple outcomes and corresponding patient treatments. bhpm implements Bayesian hierarchical models, which allow a stratification of the population into clusters with similar characteristics, and which take advantage of known relationships between clinical outcomes, to determine which outcomes are associated with treatments.

Installation

You can install the released version of bhpm from CRAN with:

install.packages("bhpm")

And the development version from GitHub with:

# install.packages("devtools")
devtools::install_github("rcarragh/bhpm")

Example

This is a basic example which shows how to fit the model:

library(bhpm)
data(demo.cluster.data)
mod.fit <- bhpm.pm(demo.cluster.data, burnin = 100, iter = 200)
#> Memory Model: HIGH
#> MCMC fitting complete.

About

Bayesian Hierarchical Possion Models for Mulitple Grouped Outcomes with Clustering

Topics

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • R 57.8%
  • C++ 40.2%
  • Other 2.0%