Learn R Programming

⚠️There's a newer version (1.1.0) of this package.Take me there.

sourceR (version 1.0.1)

Fits a Non-Parametric Bayesian Source Attribution Model

Description

Implements a non-parametric source attribution model to attribute cases of disease to sources in Bayesian framework with source and type effects. Type effects are clustered using a Dirichlet Process. Multiple times and locations are supported.

Copy Link

Version

Install

install.packages('sourceR')

Monthly Downloads

41

Version

1.0.1

License

GPL-3

Maintainer

Poppy Miller

Last Published

May 9th, 2017

Functions in sourceR (1.0.1)

DirichletProcessNode

DirichletProcessNode
FormulaNode

FormulaNode
PoissonNode

PoissonNode
Prev

Constructs prevalence data
AdaptiveMultiMRW

AdaptiveMultiMRW
Alpha

Constructs alpha prior
Node

Node
PoisGammaDPUpdate

PoisGammaDPUpdate
DataNode

DataNode
DirichletNode

DirichletNode
AdaptiveDirMRW

AdaptiveDirMRW
AdaptiveLogDirMRW

AdaptiveLogDirMRW
Q

Constructs initial values for q
StochasticNode

StochasticNode
campy

Human cases of campylobacteriosis and numbers of source samples positive for
sim_SA

Simulated data: Human cases of campylobacteriosis and numbers of source samples positive for
X

Constructs source data
Y

Constructs disease count data
sliceTensor

Slices a tensorA::tensor
sourceR

sourceR: A package for fitting Bayesian non-parametric source attribution models.
Alpha_

Alpha prior hyperparameter class
DPModel_impl

Builds the source attribution model. Is not intended to be used by a regular user.
GammaNode

GammaNode
HaldDP

Builds a HaldDP source attribution model