forked from rcarragh/bhpm
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathREADME.Rmd
49 lines (35 loc) · 1.49 KB
/
README.Rmd
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
---
output: github_document
---
<!-- README.md is generated from README.Rmd. Please edit that file -->
```{r, include = FALSE}
knitr::opts_chunk$set(
collapse = TRUE,
comment = "#>",
fig.path = "man/figures/README-",
out.width = "100%"
)
```
# Bayesian Hierarchical Poisson Models for Multiple Grouped Outcomes with Clustering
<!-- badges: start -->
<!-- badges: end -->
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](https://CRAN.R-project.org) with:
``` r
install.packages("bhpm")
```
And the development version from [GitHub](https://github.com/) with:
``` r
# install.packages("devtools")
devtools::install_github("rcarragh/bhpm")
```
## Example
This is a basic example which shows how to fit the model:
```{r example1}
library(bhpm)
data(demo.cluster.data)
mod.fit <- bhpm.pm(demo.cluster.data, burnin = 100, iter = 200)
```