Hamiltonian Monte Carlo (HMC)Functions and helpers for fitting models using the MCMC algorithm HMC. Also exported is the leapfrog function, largely for pedagogical purposes. |
|
---|---|
Fit a generic model using Hamiltonian Monte Carlo (HMC) |
|
Fitter function for Hamiltonian Monte Carlo (HMC) |
|
Leapfrog Algorithm for Hamiltonian Monte Carlo |
|
Metropolis-Hastings (MH)Functions and helpers for fitting models using the MCMC algorithm MH. Also includes functions to facilitate the random walk Metropolis algorithm using a multivariate normal proposal. |
|
Fit a generic model using Metropolis-Hastings (MH) |
|
Fitter function for Metropolis-Hastings (MH) |
|
Multivariate Normal Density of Theta1 | Theta2 |
|
Simulate from Multivariate Normal Density for Metropolis Algorithm |
|
Plotting functions from the bayesplot packageUse bayesplot to assess fit explore the posterior distributions of HMC and MH models. Includes functions for plotting Rhat statistics, effective sample sizes, histograms, density plots, trace plots, and autocorrelation, among other functions. |
|
|
Plotting for MCMC visualization and diagnostics provided by |
Plot Histograms of the Posterior Distribution |
|
Summary Statistics from MCMC SimulationsFunctions to summarize and predict using the simulated posterior distribution |
|
Summarizing HMC Model Fits |
|
Extract Model Coefficients |
|
Model Predictions for HMC or MH |
|
MCMC diagnosticsFunctions for some standard MCMC diagnostics. Includes effective sample size, potential scale reduction factor (or Rhat), , and diagnostic plots that can be used to compare results from this package to fitting models using other techniques. |
|
Effective sample size calculation |
|
Effective sample size calculation |
|
Calculates Potential Scale Reduction Factor (psrf), also called the Rhat statistic,
from models fit via |
|
Calculates Potential Scale Reduction Factor (psrf), also called the Rhat statistic,
from models fit via |
|
Diagnostic plots for |
|
Diagnostic plots for |
|
Sample Linear Regression Functions for Use in hmclearnIncludes log posterior and gradient functions for Linear, Logistic, and Poisson regression models, as well as Mixed Effect models. Functions starting g_ are gradient functions. |
|
|
Sample log posterior and gradient functions for select generalized linear models and mixed effect models |
Sample DataIncluded data sets to practice fitting models using HMC |
|
Student Drug Usage Dataset |
|
Endometrial Cancer Dataset |
|
Count of Fresh Gopher Tortoise Shells |