Package: hmetad 0.1.2

Kevin ONeill

hmetad: Fit the Meta-D' Model of Confidence Ratings Using 'brms'

Implementation of Bayesian regressions over the meta-d' model of psychological data from two alternative forced choice tasks with ordinal confidence ratings. For more information, see Maniscalco & Lau (2012) <doi:10.1016/j.concog.2011.09.021>. The package is a front-end to the 'brms' package, which facilitates a wide range of regression designs, as well as tools for efficiently extracting posterior estimates, plotting, and significance testing.

Authors:Kevin O'Neill [aut, cre, cph], Stephen Fleming [aut, cph]

hmetad_0.1.2.tar.gz
hmetad_0.1.2.zip(r-4.7)hmetad_0.1.2.zip(r-4.6)hmetad_0.1.2.zip(r-4.5)
hmetad_0.1.2.tgz(r-4.6-any)hmetad_0.1.2.tgz(r-4.5-any)
hmetad_0.1.2.tar.gz(r-4.7-any)hmetad_0.1.2.tar.gz(r-4.6-any)
hmetad_0.1.2.tgz(r-4.6-emscripten)
manual.pdf |manual.html
card.svg |card.png
hmetad/json (API)
NEWS

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

Bug tracker:https://github.com/metacoglab/hmetad/issues

Pkgdown/docs site:https://metacoglab.github.io

On CRAN:

Conda:

6.18 score 5 stars 7 scripts 580 downloads 51 exports 79 dependencies

Last updated from:2e89b0e170. Checks:9 OK. Indexed: yes.

TargetResultTimeFilesSyslog
linux-devel-x86_64OK232
source / vignettesOK369
linux-release-x86_64OK218
macos-release-arm64OK205
macos-oldrel-arm64OK166
windows-develOK173
windows-releaseOK163
windows-oldrelOK168
wasm-releaseOK163

Exports:add_epred_draws_metadadd_epred_rvars_metadadd_linpred_draws_metadadd_linpred_rvars_metadadd_mean_confidence_drawsadd_mean_confidence_rvarsadd_metacognitive_bias_drawsadd_metacognitive_bias_rvarsadd_predicted_draws_metadadd_predicted_rvars_metadadd_roc1_drawsadd_roc1_rvarsadd_roc2_drawsadd_roc2_rvarsaggregate_metadcor_matrixcov_matrixepred_draws_metadepred_rvars_metadexample_dataexample_modelfit_metadjoint_responselinpred_draws_metadlinpred_rvars_metadmean_confidence_drawsmean_confidence_rvarsmetac2_parametersmetacognitive_bias_drawsmetacognitive_bias_rvarsmetadmetad_pmfnormal_lccdfnormal_lcdfpredicted_draws_metadpredicted_rvars_metadresponse_probabilitiesrmatrixnormroc1_drawsroc1_rvarsroc2_drawsroc2_rvarssim_metadsim_metad_conditionsim_metad_participantsim_metad_participant_conditionstanvars_metadto_signedto_unsignedtype1_responsetype2_response

Dependencies:abindarrayhelpersbackportsbayesplotBHbridgesamplingbrmsBrobdingnagcallrcheckmateclicodacodetoolscpp11descdigestdistributionaldplyrfarverfuturefuture.applygenericsggdistggplot2ggridgesglobalsgluegridExtragtableinlineisobandlabelinglatticelifecyclelistenvloomagrittrMatrixmatrixStatsmgcvmvtnormnleqslvnlmenumDerivparallellypillarpkgbuildpkgconfigplyrposteriorprocessxpspurrrquadprogQuickJSRR6RColorBrewerRcppRcppEigenRcppParallelreshape2rlangrstanrstantoolsS7scalesStanHeadersstringistringrsvUnittensorAtibbletidybayestidyrtidyselectutf8vctrsviridisLitewithr

Estimating trial-level effects

Rendered fromcategorical.Rmdusingknitr::rmarkdownon May 15 2026.

Last update: 2026-05-15
Started: 2026-02-20

Fitting the meta-d' model

Rendered fromhmetad.Rmdusingknitr::rmarkdownon May 15 2026.

Last update: 2026-05-15
Started: 2026-02-20

History of the hmetad package

Rendered fromhistory.Rmdusingknitr::rmarkdownon May 15 2026.

Last update: 2026-04-10
Started: 2026-02-20

Parameterization of the meta-d' model

Rendered fromparameterization.Rmdusingknitr::rmarkdownon May 15 2026.

Last update: 2026-04-10
Started: 2026-02-10

Using alternative signal distributions with the meta-d' model

Rendered fromalternative_distributions.Rmdusingknitr::rmarkdownon May 15 2026.

Last update: 2026-05-15
Started: 2026-02-10

Readme and manuals

Help Manual

Help pageTopics
Aggregate 'data' by 'response', 'confidence', and other columnsaggregate_metad
Generate a correlation matrix with all off-diagonal values equal to 'r'cor_matrix
Generate a covariance matrix.cov_matrix
Obtain posterior draws of joint response probabilitiesadd_epred_draws_metad add_epred_rvars_metad epred_draws_metad epred_rvars_metad
Simulated data for example model fittingexample_data
Example meta-d' model for model post-processingexample_model
Fit the meta-d' model using 'brms' packagefit_metad
Convert between separate and joint type 1/type 2 responsesjoint_response type1_response type2_response
Obtain posterior draws of meta-d' model parametersadd_linpred_draws_metad add_linpred_rvars_metad linpred_draws_metad linpred_rvars_metad
Obtain posterior draws of mean confidenceadd_mean_confidence_draws add_mean_confidence_rvars mean_confidence_draws mean_confidence_rvars
Obtain a vector of the names of the 'K-1' parameters representing the differences between successive confidence criteria for the meta-d' model with 'K' levels of confidence.metac2_parameters
Obtain posterior draws of an index of metacognitive biasadd_metacognitive_bias_draws add_metacognitive_bias_rvars metacognitive_bias_draws metacognitive_bias_rvars
'brms' family for the metad' modelmetad
Generate (log) probability simplex over the joint type 1/type 2 responsesmetad_pmf
Normal cumulative distribution functionsnormal_lccdf normal_lcdf
Obtain posterior predictions of joint responsesadd_predicted_draws_metad add_predicted_rvars_metad predicted_draws_metad predicted_rvars_metad
Compute joint response probabilities from aggregated countsresponse_probabilities
Sample from a matrix-normal distributionrmatrixnorm
Obtain posterior draws of the pseudo type 1 receiver operating characteristic (ROC) curve.add_roc1_draws add_roc1_rvars roc1_draws roc1_rvars
Obtain posterior draws of the response-specific type 2 receiver operating characteristic (ROC) curves.add_roc2_draws add_roc2_rvars roc2_draws roc2_rvars
Simulate from the meta-d' modelsim_metad
Simulate from the meta-d' model across separate conditionssim_metad_condition
Simulate from the hierarchical meta-d' modelsim_metad_participant
Simulate from the hierarchical meta-d' model across within-participant conditionssim_metad_participant_condition
Generate Stan code for the meta-d' modelstanvars_metad
Convert binary variable x between \{0, 1\} and \{-1, 1\}to_signed to_unsigned