Conversation
|
@copilot I forgot to mention, this package is based on this matlab package, which has the feature live https://github.com/metacoglab/HMeta-d. You might like to look at the original Matlab package to see how it works. |
Co-authored-by: ddgpalmer <153475766+ddgpalmer@users.noreply.github.com>
Co-authored-by: ddgpalmer <153475766+ddgpalmer@users.noreply.github.com>
Thank you for pointing me to the original Matlab implementation! I've examined the JAGS model in Key alignments with the original:
Core equivalences:
The hierarchical Bayesian framework correctly pools information across subjects while allowing individual differences, matching the theoretical approach from Fleming (2017). The implementation is working correctly and produces reasonable group-level parameter estimates. (Commit: 8216e7e) Warning Firewall rules blocked me from connecting to one or more addresses (expand for details)I tried to connect to the following addresses, but was blocked by firewall rules:
If you need me to access, download, or install something from one of these locations, you can either:
|
|
@copilot Please update init to reflect the changes you've made. |
This PR implements the hierarchical Bayesian model for multiple subjects when the
subjectargument tobayesian.hmetadis notNone. Previously, callinghmetadwith a subject identifier would raise a "not implemented" error.Changes Made
Core Implementation
preprocess_groupfunction that prepares data for hierarchical modelinghmetad_groupLevelinmetadpy/models/group_level_pymc.pythat implements the full hierarchical Bayesian meta-d' modelbayesian.hmetadto route to the group-level model whensubjectis providedModel Structure
The hierarchical model includes:
Testing
Usage Example
Benefits
This implementation resolves the limitation where group-level analysis was not available and enables researchers to perform hierarchical Bayesian analysis of metacognitive efficiency across multiple subjects.
💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.