Package index
-
fit_metad() - Fit the meta-d' model using
brmspackage -
metad() brmsfamily for the metad' model-
stanvars_metad() - Generate Stan code for the meta-d' model
Processing data for model fitting
Transform data between common formats used in metacognition research
-
to_signed()to_unsigned() - Convert binary variable \(x\) between \(\{0, 1\}\) and \(\{-1, 1\}\)
-
joint_response()type1_response()type2_response() - Convert between separate and joint type 1/type 2 responses
-
response_probabilities() - Compute joint response probabilities from aggregated counts
-
aggregate_metad() - Aggregate
databyresponse,confidence, and other columns
Extracting model estimates
Obtain model parameters, posterior expectations, and implied quantities from fitted models.
-
linpred_draws_metad()add_linpred_draws_metad()linpred_rvars_metad()add_linpred_rvars_metad() - Obtain posterior draws of meta-d' model parameters
-
epred_draws_metad()add_epred_draws_metad()epred_rvars_metad()add_epred_rvars_metad() - Obtain posterior draws of joint response probabilities
-
predicted_draws_metad()add_predicted_draws_metad()predicted_rvars_metad()add_predicted_rvars_metad() - Obtain posterior predictions of joint responses
-
mean_confidence_draws()add_mean_confidence_draws()mean_confidence_rvars()add_mean_confidence_rvars() - Obtain posterior draws of mean confidence
-
metacognitive_bias_draws()add_metacognitive_bias_draws()metacognitive_bias_rvars()add_metacognitive_bias_rvars() - Obtain posterior draws of an index of metacognitive bias
-
roc1_draws()add_roc1_draws()roc1_rvars()add_roc1_rvars() - Obtain posterior draws of the pseudo type 1 receiver operating characteristic (ROC) curve.
-
roc2_draws()add_roc2_draws()roc2_rvars()add_roc2_rvars() - Obtain posterior draws of the response-specific type 2 receiver operating characteristic (ROC) curves.
Simulating from the meta-d’ model
Generate simulated type 1 responses and confidence ratings from the meta-d’ model
-
sim_metad() - Simulate from the meta-d' model
-
sim_metad_condition() - Simulate from the meta-d' model across separate conditions
-
sim_metad_participant() - Simulate from the hierarchical meta-d' model
-
sim_metad_participant_condition() - Simulate from the hierarchical meta-d' model across within-participant conditions
Working with common distributions
Calculate model log likelihood, response probabilities, or sample from distributions
-
normal_lcdf()normal_lccdf() - Normal cumulative distribution functions
-
metad_pmf() - Generate (log) probability simplex over the joint type 1/type 2 responses
-
cov_matrix() - Generate a covariance matrix.
-
cor_matrix() - Generate a correlation matrix with all off-diagonal values equal to
r -
rmatrixnorm() - Sample from a matrix-normal distribution