Learn R Programming

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

NPP (version 0.1.0)

Normalized Power Prior Bayesian Analysis

Description

Posterior sampling in several commonly used distributions using normalized power prior as described in Duan, Ye and Smith (2006) and Ibrahim et.al. (2015) . Sampling of the power parameter is achieved via either independence Metropolis-Hastings or random walk Metropolis-Hastings based on transformation.

Copy Link

Version

Install

install.packages('NPP')

Monthly Downloads

219

Version

0.1.0

License

GPL (>= 2)

Maintainer

Zifei Han

Last Published

July 11th, 2019

Functions in NPP (0.1.0)

PoissonNPP_MCMC

MCMC Sampling for Bernoulli Population using Normalized Power Prior
PHData

PH Data on four sites in Virginia
NormalNPP_MCMC

MCMC Sampling for Normal Population using Normalized Power Prior
LaplacelogC

A Function to Calculate \(logC(\delta)\) Based on Laplace Approximation
BerNPP_MCMC

MCMC Sampling for Bernoulli Population using Normalized Power Prior
ModeDeltaPoisNPP

Calculate Posterior Mode of the Power Parameter in Normalized Power Prior with Grid Search, Poisson Population
ModeDeltaBerNPP

Calculate Posterior Mode of the Power Parameter in Normalized Power Prior with Grid Search, Bernoulli Population
ModeDeltaNormalNPP

Calculate Posterior Mode of the Power Parameter in Normalized Power Prior with Grid Search, Normal Population
ModeDeltaMultinomialNPP

Calculate Posterior Mode of the Power Parameter in Normalized Power Prior with Grid Search, Multinomial Population
MultinomialNPP_MCMC

MCMC Sampling for Multinomial Population using Normalized Power Prior
loglikBerD0

A Function to Calculate Log-likelihood of the Historical Data, Given Matrix-valued Parameters, for Bernoulli Population
SPDData

Dataset for Diagnostic Test (PartoSure Test, Medical Device) Evaluation for Spontaneous Preterm Delivery
VaccineData

Dataset of a Vaccine Trial for RotaTeq and Multiple Historical Trials for Control Group
logCknot

A Function to Calculate \(logC(\delta)\) on Selected Knots
logCdelta

A Function to Interpolate \(logC(\delta)\) Based on Its Values on Selected Knots
loglikNormD0

A Function to Calculate Log-likelihood of the Historical Data, Given Array-valued Parameters, for Normal Population