{
  "_id": "6ac4cfeff511ae58c09a1b4c",
  "Package": "hmclearn",
  "Type": "Package",
  "Title": "Fit Statistical Models Using Hamiltonian Monte Carlo",
  "Version": "0.0.5",
  "Authors@R": "c(person(given = \"Samuel\",\nfamily = \"Thomas\",\nrole = c(\"cre\", \"aut\"),\nemail = \"samthoma@iu.edu\"),\nperson(given = \"Wanzhu\",\nfamily = \"Tu\",\nrole = \"ctb\",\nemail = \"wtu1@iu.edu\"))",
  "Maintainer": "Samuel Thomas <samthoma@iu.edu>",
  "Description": "Provide users with a framework to learn the intricacies of\nthe Hamiltonian Monte Carlo algorithm with hands-on experience\nby tuning and fitting their own models.  All of the code is\nwritten in R.  Theoretical references are listed below:. Neal,\nRadford (2011) \"Handbook of Markov Chain Monte Carlo\" ISBN:\n978-1420079418, Betancourt, Michael (2017) \"A Conceptual\nIntroduction to Hamiltonian Monte Carlo\" <arXiv:1701.02434>,\nThomas, S., Tu, W. (2020) \"Learning Hamiltonian Monte Carlo in\nR\" <arXiv:2006.16194>, Gelman, A., Carlin, J. B., Stern, H. S.,\nDunson, D. B., Vehtari, A., & Rubin, D. B. (2013) \"Bayesian\nData Analysis\" ISBN: 978-1439840955, Agresti, Alan (2015)\n\"Foundations of Linear and Generalized Linear Models ISBN:\n978-1118730034, Pinheiro, J., Bates, D. (2006) \"Mixed-effects\nModels in S and S-Plus\" ISBN: 978-1441903174.",
  "License": "GPL-3",
  "Encoding": "UTF-8",
  "Language": "en-US",
  "LazyData": "true",
  "RoxygenNote": "7.1.1",
  "VignetteBuilder": "knitr",
  "Config/pak/sysreqs": "libicu-dev",
  "Repository": "https://sthomas522.r-universe.dev",
  "Date/Publication": "2020-10-04 15:04:58 UTC",
  "RemoteUrl": "https://github.com/sthomas522/hmclearn",
  "RemoteRef": "HEAD",
  "RemoteSha": "c3acc7dabd719edb99c345d2f51f5c65ea170b85",
  "NeedsCompilation": "no",
  "Packaged": {
    "Date": "2026-10-06 10:34:48 UTC",
    "User": "root"
  },
  "Author": "Samuel Thomas [cre, aut],\nWanzhu Tu [ctb]",
  "_user": "sthomas522",
  "_type": "src",
  "_file": "hmclearn_0.0.5.tar.gz",
  "_fileid": "https://r2.ropensci.org/032b70770ea077410b67dc2a49e8ab71232a4dc538e12aab8e3713f9dfcafd6d",
  "_filesize": 2167951,
  "_sha256": "032b70770ea077410b67dc2a49e8ab71232a4dc538e12aab8e3713f9dfcafd6d",
  "_expires": "2027-01-14T10:39:39.000Z",
  "_created": "2026-10-06T10:34:48.000Z",
  "_published": "2026-10-06T10:39:43.746Z",
  "_jobs": [
    {
      "job": 112226470203,
      "time": 198,
      "config": "linux-devel-x86_64",
      "r": "4.7.0",
      "check": "ERROR",
      "artifact": "11405143624"
    },
    {
      "job": 112226470247,
      "time": 177,
      "config": "linux-release-x86_64",
      "r": "4.6.1",
      "check": "ERROR",
      "artifact": "11406507583"
    },
    {
      "job": 112226470174,
      "time": 203,
      "config": "macos-oldrel-arm64",
      "r": "4.5.3",
      "check": "ERROR",
      "artifact": "11405183663"
    },
    {
      "job": 112226470255,
      "time": 125,
      "config": "macos-release-arm64",
      "r": "4.6.1",
      "check": "ERROR",
      "artifact": "11406772470"
    },
    {
      "job": 112225305745,
      "time": 186,
      "config": "source",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "11405327980"
    },
    {
      "job": 112226470158,
      "time": 112,
      "config": "wasm-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "11406817314"
    },
    {
      "job": 112226470351,
      "time": 118,
      "config": "windows-devel-x86_64",
      "r": "4.7.0",
      "check": "ERROR",
      "artifact": "11405663152"
    },
    {
      "job": 112226470281,
      "time": 111,
      "config": "windows-oldrel-x86_64",
      "r": "4.5.3",
      "check": "ERROR",
      "artifact": "11407007208"
    },
    {
      "job": 112226470276,
      "time": 73,
      "config": "windows-release-x86_64",
      "r": "4.6.1",
      "check": "ERROR",
      "artifact": "11406277216"
    }
  ],
  "_host": "GitHub-Actions",
  "_buildurl": "https://github.com/r-universe/sthomas522/actions/runs/37450350113",
  "_status": "success",
  "_upstream": "https://github.com/sthomas522/hmclearn",
  "_commit": {
    "id": "c3acc7dabd719edb99c345d2f51f5c65ea170b85",
    "author": "Samuel Thomas <samthoma@iu.edu>",
    "committer": "Samuel Thomas <samthoma@iu.edu>",
    "message": "update urls\n",
    "time": 1601823898
  },
  "_maintainer": {
    "name": "Samuel Thomas",
    "email": "samthoma@iu.edu"
  },
  "_distro": "resolute",
  "_registered": true,
  "_dependencies": [
    {
      "package": "R",
      "version": ">= 3.6",
      "role": "Depends"
    },
    {
      "package": "bayesplot",
      "role": "Imports"
    },
    {
      "package": "parallel",
      "role": "Imports"
    },
    {
      "package": "MASS",
      "role": "Imports"
    },
    {
      "package": "mvtnorm",
      "role": "Imports"
    },
    {
      "package": "knitr",
      "role": "Suggests"
    },
    {
      "package": "rmarkdown",
      "role": "Suggests"
    },
    {
      "package": "Matrix",
      "role": "Suggests"
    },
    {
      "package": "lme4",
      "role": "Suggests"
    },
    {
      "package": "carData",
      "role": "Suggests"
    },
    {
      "package": "mlbench",
      "role": "Suggests"
    },
    {
      "package": "ggplot2",
      "role": "Suggests"
    },
    {
      "package": "mlmRev",
      "role": "Suggests"
    },
    {
      "package": "testthat",
      "role": "Suggests"
    },
    {
      "package": "MCMCpack",
      "role": "Suggests"
    }
  ],
  "_owner": "sthomas522",
  "_selfowned": true,
  "_usedby": 0,
  "_updates": [],
  "_tags": [],
  "_stars": 11,
  "_contributors": [
    {
      "user": "sthomas522",
      "count": 46,
      "uuid": 5200169
    }
  ],
  "_userbio": {
    "uuid": 5200169,
    "type": "user",
    "name": "Samuel Thomas",
    "followers": 4,
    "description": "Data Scientist and PhD in Biostatistics. "
  },
  "_downloads": {
    "count": 253,
    "source": "https://cranlogs.r-pkg.org/downloads/total/last-month/hmclearn"
  },
  "_devurl": "https://github.com/sthomas522/hmclearn",
  "_searchresults": 24,
  "_rbuild": "4.6.1",
  "_assets": [
    "extra/citation.cff",
    "extra/citation.html",
    "extra/citation.json",
    "extra/citation.txt",
    "extra/contents.json",
    "extra/hmclearn.html",
    "extra/manual.pdf",
    "extra/NEWS.html",
    "extra/NEWS.txt",
    "extra/readme.html",
    "extra/readme.md"
  ],
  "_homeurl": "https://github.com/sthomas522/hmclearn",
  "_realowner": "sthomas522",
  "_cranurl": true,
  "_releases": [
    {
      "version": "0.0.3",
      "date": "2020-06-25"
    },
    {
      "version": "0.0.4",
      "date": "2020-07-27"
    },
    {
      "version": "0.0.5",
      "date": "2020-10-05"
    }
  ],
  "_exports": [
    "diagplots",
    "g_glmm_bin_posterior",
    "g_glmm_poisson_posterior",
    "g_linear_posterior",
    "g_lmm_posterior",
    "g_logistic_posterior",
    "g_poisson_posterior",
    "glmm_bin_posterior",
    "glmm_poisson_posterior",
    "hmc",
    "hmc.fit",
    "leapfrog",
    "linear_posterior",
    "lmm_posterior",
    "logistic_posterior",
    "mcmc_acf",
    "mcmc_acf_bar",
    "mcmc_areas",
    "mcmc_dens",
    "mcmc_hex",
    "mcmc_hist",
    "mcmc_hist_by_chain",
    "mcmc_intervals",
    "mcmc_neff",
    "mcmc_neff_data",
    "mcmc_neff_hist",
    "mcmc_pairs",
    "mcmc_rhat",
    "mcmc_rhat_hist",
    "mcmc_scatter",
    "mcmc_trace",
    "mcmc_violin",
    "mh",
    "mh.fit",
    "neff",
    "poisson_posterior",
    "psrf",
    "qfun",
    "qprop"
  ],
  "_datasets": [
    {
      "name": "Drugs",
      "title": "Student Drug Usage Dataset",
      "object": "Drugs",
      "class": [
        "data.frame"
      ],
      "fields": [
        "A",
        "C",
        "M",
        "count"
      ],
      "rows": 8,
      "table": true,
      "tojson": true
    },
    {
      "name": "Endometrial",
      "title": "Endometrial Cancer Dataset",
      "object": "Endometrial",
      "class": [
        "data.frame"
      ],
      "fields": [
        "NV",
        "PI",
        "EH",
        "HG"
      ],
      "rows": 79,
      "table": true,
      "tojson": true
    },
    {
      "name": "Gdat",
      "title": "Count of Fresh Gopher Tortoise Shells",
      "object": "Gdat",
      "class": [
        "data.frame"
      ],
      "fields": [
        "Site",
        "year",
        "shells",
        "type",
        "Area",
        "density",
        "prev"
      ],
      "rows": 30,
      "table": true,
      "tojson": true
    }
  ],
  "_help": [
    {
      "page": "coef.hmclearn",
      "title": "Extract Model Coefficients",
      "topics": [
        "coef.hmclearn"
      ]
    },
    {
      "page": "diagplots",
      "title": "Diagnostic plots for 'hmclearn'",
      "topics": [
        "diagplots"
      ]
    },
    {
      "page": "diagplots.hmclearn",
      "title": "Diagnostic plots for 'hmclearn'",
      "topics": [
        "diagplots.hmclearn"
      ]
    },
    {
      "page": "Drugs",
      "title": "Student Drug Usage Dataset",
      "topics": [
        "Drugs"
      ]
    },
    {
      "page": "Endometrial",
      "title": "Endometrial Cancer Dataset",
      "topics": [
        "Endometrial"
      ]
    },
    {
      "page": "Gdat",
      "title": "Count of Fresh Gopher Tortoise Shells",
      "topics": [
        "Gdat"
      ]
    },
    {
      "page": "hmc",
      "title": "Fit a generic model using Hamiltonian Monte Carlo (HMC)",
      "topics": [
        "hmc"
      ]
    },
    {
      "page": "hmc.fit",
      "title": "Fitter function for Hamiltonian Monte Carlo (HMC)",
      "topics": [
        "hmc.fit"
      ]
    },
    {
      "page": "hmclearn-glm-posterior",
      "title": "Sample log posterior and gradient functions for select generalized linear models and mixed effect models",
      "topics": [
        "glmm_bin_posterior",
        "glmm_poisson_posterior",
        "g_glmm_bin_posterior",
        "g_glmm_poisson_posterior",
        "g_linear_posterior",
        "g_lmm_posterior",
        "g_logistic_posterior",
        "g_poisson_posterior",
        "hmclearn-glm-posterior",
        "linear_posterior",
        "lmm_posterior",
        "logistic_posterior",
        "poisson_posterior"
      ]
    },
    {
      "page": "hmclearn-plots",
      "title": "Plotting for MCMC visualization and diagnostics provided by 'bayesplot' package",
      "topics": [
        "hmclearn-plots",
        "mcmc_acf",
        "mcmc_acf.hmclearn",
        "mcmc_acf_bar",
        "mcmc_acf_bar.hmclearn",
        "mcmc_areas",
        "mcmc_areas.hmclearn",
        "mcmc_dens",
        "mcmc_dens.hmclearn",
        "mcmc_hex",
        "mcmc_hex.hmclearn",
        "mcmc_hist",
        "mcmc_hist.hmclearn",
        "mcmc_hist_by_chain",
        "mcmc_hist_by_chain.hmclearn",
        "mcmc_intervals",
        "mcmc_intervals.hmclearn",
        "mcmc_neff",
        "mcmc_neff.hmclearn",
        "mcmc_neff_data",
        "mcmc_neff_data.hmclearn",
        "mcmc_neff_hist",
        "mcmc_neff_hist.hmclearn",
        "mcmc_pairs",
        "mcmc_pairs.hmclearn",
        "mcmc_rhat",
        "mcmc_rhat.hmclearn",
        "mcmc_rhat_hist",
        "mcmc_rhat_hist.hmclearn",
        "mcmc_scatter",
        "mcmc_scatter.hmclearn",
        "mcmc_trace",
        "mcmc_trace.hmclearn",
        "mcmc_violin",
        "mcmc_violin.hmclearn"
      ]
    },
    {
      "page": "leapfrog",
      "title": "Leapfrog Algorithm for Hamiltonian Monte Carlo",
      "topics": [
        "leapfrog"
      ]
    },
    {
      "page": "mh",
      "title": "Fit a generic model using Metropolis-Hastings (MH)",
      "topics": [
        "mh"
      ]
    },
    {
      "page": "mh.fit",
      "title": "Fitter function for Metropolis-Hastings (MH)",
      "topics": [
        "mh.fit"
      ]
    },
    {
      "page": "neff",
      "title": "Effective sample size calculation",
      "topics": [
        "neff"
      ]
    },
    {
      "page": "neff.hmclearn",
      "title": "Effective sample size calculation",
      "topics": [
        "neff.hmclearn"
      ]
    },
    {
      "page": "plot.hmclearn",
      "title": "Plot Histograms of the Posterior Distribution",
      "topics": [
        "plot.hmclearn"
      ]
    },
    {
      "page": "predict.hmclearn",
      "title": "Model Predictions for HMC or MH",
      "topics": [
        "predict.hmclearn"
      ]
    },
    {
      "page": "psrf",
      "title": "Calculates Potential Scale Reduction Factor (psrf), also called the Rhat statistic, from models fit via 'mh' or 'hmc'",
      "topics": [
        "psrf"
      ]
    },
    {
      "page": "psrf.hmclearn",
      "title": "Calculates Potential Scale Reduction Factor (psrf), also called the Rhat statistic, from models fit via 'mh' or 'hmc'",
      "topics": [
        "psrf.hmclearn"
      ]
    },
    {
      "page": "qfun",
      "title": "Multivariate Normal Density of Theta1 | Theta2",
      "topics": [
        "qfun"
      ]
    },
    {
      "page": "qprop",
      "title": "Simulate from Multivariate Normal Density for Metropolis Algorithm",
      "topics": [
        "qprop"
      ]
    },
    {
      "page": "summary.hmclearn",
      "title": "Summarizing HMC Model Fits",
      "topics": [
        "summary.hmclearn"
      ]
    }
  ],
  "_readme": "https://github.com/sthomas522/hmclearn/raw/HEAD/README.md",
  "_rundeps": [
    "abind",
    "backports",
    "bayesplot",
    "checkmate",
    "cli",
    "cpp11",
    "distributional",
    "dplyr",
    "farver",
    "generics",
    "ggdist",
    "ggplot2",
    "ggridges",
    "glue",
    "gtable",
    "isoband",
    "labeling",
    "lifecycle",
    "magrittr",
    "MASS",
    "matrixStats",
    "mvtnorm",
    "numDeriv",
    "pillar",
    "pkgconfig",
    "plyr",
    "posterior",
    "purrr",
    "quadprog",
    "R6",
    "RColorBrewer",
    "Rcpp",
    "reshape2",
    "rlang",
    "S7",
    "scales",
    "stringi",
    "stringr",
    "tensorA",
    "tibble",
    "tidyr",
    "tidyselect",
    "utf8",
    "vctrs",
    "viridisLite",
    "withr"
  ],
  "_vignettes": [
    {
      "source": "linear_mixed_effects_hmclearn.Rmd",
      "filename": "linear_mixed_effects_hmclearn.html",
      "title": "hmclearn: Linear Mixed Effects Regression Example",
      "author": "Samuel Thomas",
      "engine": "knitr::rmarkdown",
      "headings": [
        "Introduction",
        "Derive log posterior and gradient for HMC",
        "Linear mixed effects model example data",
        "Comparison model - Frequentist",
        "Fit model using hmc",
        "Source",
        "References"
      ],
      "created": "2020-04-24 20:28:31",
      "modified": "2020-10-04 14:24:18",
      "commits": 13
    },
    {
      "source": "linear_regression_hmclearn.Rmd",
      "filename": "linear_regression_hmclearn.html",
      "title": "hmclearn: Linear Regression Example",
      "author": "Samuel Thomas",
      "engine": "knitr::rmarkdown",
      "headings": [
        "Introduction",
        "Derive log posterior and gradient for HMC",
        "Linear Regression Example Data",
        "Comparison model - Frequentist",
        "Fit model using hmc",
        "MCMC summary and diagnostics",
        "Source",
        "References"
      ],
      "created": "2020-04-24 20:28:31",
      "modified": "2020-10-04 14:24:18",
      "commits": 11
    },
    {
      "source": "logistic_mixed_effects_hmclearn.Rmd",
      "filename": "logistic_mixed_effects_hmclearn.html",
      "title": "hmclearn: Logistic Mixed Effects Regression Example",
      "author": "Samuel Thomas",
      "engine": "knitr::rmarkdown",
      "headings": [
        "Introduction",
        "Derive log posterior and gradient for HMC",
        "Logistic mixed effects model example data",
        "QR decomposition of design matrix",
        "Fit model using hmc",
        "Comparison model - Frequentist",
        "Source",
        "References"
      ],
      "created": "2020-04-24 20:28:31",
      "modified": "2020-10-04 14:24:18",
      "commits": 12
    },
    {
      "source": "logistic_regression_hmclearn.Rmd",
      "filename": "logistic_regression_hmclearn.html",
      "title": "hmclearn: Logistic Regression Example",
      "author": "Samuel Thomas",
      "engine": "knitr::rmarkdown",
      "headings": [
        "Introduction",
        "Derive log posterior and gradient for HMC",
        "Logistic Regression Example Data",
        "Comparison models - Frequentist and Metropolis-Hastings",
        "Fit model using hmc",
        "MCMC summary and diagnostics",
        "Source",
        "Reference"
      ],
      "created": "2020-04-24 20:28:31",
      "modified": "2020-10-04 15:04:58",
      "commits": 13
    },
    {
      "source": "poisson_regression_hmclearn.Rmd",
      "filename": "poisson_regression_hmclearn.html",
      "title": "hmclearn: Poisson Regression Example",
      "author": "Samuel Thomas",
      "engine": "knitr::rmarkdown",
      "headings": [
        "Introduction",
        "Derive log posterior and gradient for HMC",
        "Poisson Regression Example Data",
        "Comparison model - Frequentist",
        "Fit model using hmc",
        "MCMC summary and diagnostics",
        "Source",
        "References"
      ],
      "created": "2020-04-24 20:28:31",
      "modified": "2020-10-04 14:24:18",
      "commits": 10
    }
  ],
  "_score": 5.819543935541868,
  "_indexed": true,
  "_nocasepkg": "hmclearn",
  "_universes": [
    "sthomas522"
  ],
  "_binaries": [
    {
      "r": "4.7.0",
      "os": "linux",
      "version": "0.0.5",
      "date": "2026-10-06T10:37:46.000Z",
      "distro": "resolute",
      "commit": "c3acc7dabd719edb99c345d2f51f5c65ea170b85",
      "fileid": "https://r2.ropensci.org/4b8cca48edf4b6a2bddd02760f0f14768bf06b15d984f1d55c30ffa7c313ad70",
      "status": "failure",
      "check": "ERROR",
      "buildurl": "https://github.com/r-universe/sthomas522/actions/runs/37450350113"
    },
    {
      "r": "4.6.1",
      "os": "linux",
      "version": "0.0.5",
      "date": "2026-10-06T10:37:31.000Z",
      "distro": "resolute",
      "commit": "c3acc7dabd719edb99c345d2f51f5c65ea170b85",
      "fileid": "https://r2.ropensci.org/2a6481dbd02818383ff52ad0349641141a9a4a3ee4d29fc7cb3a9ccddde146bc",
      "status": "failure",
      "check": "ERROR",
      "buildurl": "https://github.com/r-universe/sthomas522/actions/runs/37450350113"
    },
    {
      "r": "4.5.3",
      "os": "mac",
      "version": "0.0.5",
      "date": "2026-10-06T10:38:17.000Z",
      "commit": "c3acc7dabd719edb99c345d2f51f5c65ea170b85",
      "fileid": "https://r2.ropensci.org/e87752329f25a1daad3a0a4454adc764df612f74552b32391dd6a26fb8bb9348",
      "status": "failure",
      "check": "ERROR",
      "buildurl": "https://github.com/r-universe/sthomas522/actions/runs/37450350113"
    },
    {
      "r": "4.6.1",
      "os": "mac",
      "version": "0.0.5",
      "date": "2026-10-06T10:37:23.000Z",
      "commit": "c3acc7dabd719edb99c345d2f51f5c65ea170b85",
      "fileid": "https://r2.ropensci.org/2e59251178ff7caac28a6a728e18fdf7f3d1de08672be8f1e2685276d67dff8a",
      "status": "failure",
      "check": "ERROR",
      "buildurl": "https://github.com/r-universe/sthomas522/actions/runs/37450350113"
    },
    {
      "r": "4.6.0",
      "os": "wasm",
      "version": "0.0.5",
      "date": "2026-10-06T10:37:05.000Z",
      "commit": "c3acc7dabd719edb99c345d2f51f5c65ea170b85",
      "fileid": "https://r2.ropensci.org/22c32a9e341ff56c3a3fd74ce0fdf8b80d48b4040b4317118bc74007fd3447e5",
      "status": "success",
      "buildurl": "https://github.com/r-universe/sthomas522/actions/runs/37450350113"
    },
    {
      "r": "4.7.0",
      "os": "win",
      "version": "0.0.5",
      "date": "2026-10-06T10:36:11.000Z",
      "commit": "c3acc7dabd719edb99c345d2f51f5c65ea170b85",
      "fileid": "https://r2.ropensci.org/34899873f2b0af0dee867b1de66eb862beb65206f6f67a1d9fd971fa7d828417",
      "status": "failure",
      "check": "ERROR",
      "buildurl": "https://github.com/r-universe/sthomas522/actions/runs/37450350113"
    },
    {
      "r": "4.5.3",
      "os": "win",
      "version": "0.0.5",
      "date": "2026-10-06T10:36:03.000Z",
      "commit": "c3acc7dabd719edb99c345d2f51f5c65ea170b85",
      "fileid": "https://r2.ropensci.org/c60e8736ff882256fcecbfdfadff262e022831e99850e7a4fe4009698f88f6f8",
      "status": "failure",
      "check": "ERROR",
      "buildurl": "https://github.com/r-universe/sthomas522/actions/runs/37450350113"
    },
    {
      "r": "4.6.1",
      "os": "win",
      "version": "0.0.5",
      "date": "2026-10-06T10:35:52.000Z",
      "commit": "c3acc7dabd719edb99c345d2f51f5c65ea170b85",
      "fileid": "https://r2.ropensci.org/dc92e23cbda25f45b9ea601ad372a578c0de9b8649a8a02d1763b20399a68534",
      "status": "failure",
      "check": "ERROR",
      "buildurl": "https://github.com/r-universe/sthomas522/actions/runs/37450350113"
    }
  ]
}