Package: NPP 0.6.0

NPP: Normalized Power Prior Bayesian Analysis

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

Authors:Zifei Han, Qiang Zhang, Tianyu Bai Yuyan Duan and Keying Ye

NPP_0.6.0.tar.gz
NPP_0.6.0.zip(r-4.5)NPP_0.6.0.zip(r-4.4)NPP_0.6.0.zip(r-4.3)
NPP_0.6.0.tgz(r-4.4-any)NPP_0.6.0.tgz(r-4.3-any)
NPP_0.6.0.tar.gz(r-4.5-noble)NPP_0.6.0.tar.gz(r-4.4-noble)
NPP_0.6.0.tgz(r-4.4-emscripten)NPP_0.6.0.tgz(r-4.3-emscripten)
NPP.pdf |NPP.html
NPP/json (API)

# Install 'NPP' in R:
install.packages('NPP', repos = c('https://hanzifei.r-universe.dev', 'https://cloud.r-project.org'))

Peer review:

Datasets:
  • PHData - PH Data on four sites in Virginia
  • 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

On CRAN:

This package does not link to any Github/Gitlab/R-forge repository. No issue tracker or development information is available.

1.48 score 292 downloads 3 mentions 27 exports 0 dependencies

Last updated 12 months agofrom:25a5a002b7. Checks:OK: 7. Indexed: yes.

TargetResultDate
Doc / VignettesOKNov 07 2024
R-4.5-winOKNov 07 2024
R-4.5-linuxOKNov 07 2024
R-4.4-winOKNov 07 2024
R-4.4-macOKNov 07 2024
R-4.3-winOKNov 07 2024
R-4.3-macOKNov 07 2024

Exports:BerMNPP_MCMC1BerMNPP_MCMC2BerNPP_MCMCBerOMNPP_MCMC1BerOMNPP_MCMC2LaplacelogCLMMNPP_MCMC1LMMNPP_MCMC2LMNPP_MCMCLMOMNPP_MCMC1LMOMNPP_MCMC2logCdeltalogCknotloglikBerD0loglikNormD0ModeDeltaBerNPPModeDeltaLMNPPModeDeltaMultinomialNPPModeDeltaNormalNPPModeDeltaPoisNPPMultinomialNPP_MCMCNormalNPP_MCMCPoiMNPP_MCMC1PoiMNPP_MCMC2PoiOMNPP_MCMC1PoiOMNPP_MCMC2PoissonNPP_MCMC

Dependencies:

Readme and manuals

Help Manual

Help pageTopics
MCMC Sampling for Bernoulli Population with Multiple Historical Data using Normalized Power PriorBerMNPP_MCMC1
MCMC Sampling for Bernoulli Population of multiple historical data using Normalized Power PriorBerMNPP_MCMC2
MCMC Sampling for Bernoulli Population using Normalized Power PriorBerNPP_MCMC
MCMC Sampling for Bernoulli Population of multiple ordered historical data using Normalized Power PriorBerOMNPP_MCMC1
MCMC Sampling for Bernoulli Population of multiple ordered historical data using Normalized Power PriorBerOMNPP_MCMC2
A Function to Calculate logC(delta) Based on Laplace ApproximationLaplacelogC
MCMC Sampling for Linear Regression Model of multiple historical data using Normalized Power PriorLMMNPP_MCMC1
MCMC Sampling for Linear Regression Model of multiple historical data using Normalized Power PriorLMMNPP_MCMC2
MCMC Sampling for Normal Linear Model using Normalized Power PriorLMNPP_MCMC
MCMC Sampling for Linear Regression Model of multiple historical data using Ordered Normalized Power PriorLMOMNPP_MCMC1
MCMC Sampling for Linear Regression Model of multiple historical data using Ordered Normalized Power PriorLMOMNPP_MCMC2
A Function to Interpolate logC(delta) Based on Its Values on Selected KnotslogCdelta
A Function to Calculate logC(delta) on Selected KnotslogCknot
A Function to Calculate Log-likelihood of the Historical Data, Given Matrix-valued Parameters, for Bernoulli PopulationloglikBerD0
A Function to Calculate Log-likelihood of the Historical Data, Given Array-valued Parameters, for Normal PopulationloglikNormD0
Calculate Posterior Mode of the Power Parameter in Normalized Power Prior with Grid Search, Bernoulli PopulationModeDeltaBerNPP
Calculate Posterior Mode of the Power Parameter in Normalized Power Prior with Grid Search, Normal Linear ModelModeDeltaLMNPP
Calculate Posterior Mode of the Power Parameter in Normalized Power Prior with Grid Search, Multinomial PopulationModeDeltaMultinomialNPP
Calculate Posterior Mode of the Power Parameter in Normalized Power Prior with Grid Search, Normal PopulationModeDeltaNormalNPP
Calculate Posterior Mode of the Power Parameter in Normalized Power Prior with Grid Search, Poisson PopulationModeDeltaPoisNPP
MCMC Sampling for Multinomial Population using Normalized Power PriorMultinomialNPP_MCMC
MCMC Sampling for Normal Population using Normalized Power PriorNormalNPP_MCMC
PH Data on four sites in VirginiaPHData
MCMC Sampling for Poisson Population using Normalized Power Prior with Multiple Historical DataPoiMNPP_MCMC1
MCMC Sampling for Poisson Population of multiple historical data using Normalized Power PriorPoiMNPP_MCMC2
MCMC Sampling for Poisson Population of multiple ordered historical data using Normalized Power PriorPoiOMNPP_MCMC1
MCMC Sampling for Poisson Population of multiple ordered historical data using Normalized Power PriorPoiOMNPP_MCMC2
MCMC Sampling for Bernoulli Population using Normalized Power PriorPoissonNPP_MCMC
Dataset for Diagnostic Test (PartoSure Test, Medical Device) Evaluation for Spontaneous Preterm DeliverySPDData
Dataset of a Vaccine Trial for RotaTeq and Multiple Historical Trials for Control GroupVaccineData