Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Modelling multivariate data using HGF #256

Open
ddgpalmer opened this issue Jan 23, 2024 · 1 comment
Open

Modelling multivariate data using HGF #256

ddgpalmer opened this issue Jan 23, 2024 · 1 comment
Assignees
Labels
hgf Issues related to HGF Toolbox

Comments

@ddgpalmer
Copy link

I'm trying to model responses for an experiment where targets are randomly presented on the circumference of a circle. To convert the circular data of target location to linear data, it is sine and cosine transformed, but then necessarily becomes multivariate data. The documentation for the hgf package, and in particular, the tapas_fitModel() function say that it can accept a matrix as input, but when I input my data as a two column matrix, I get the same result as if only supplying the model with the first column. I also note that in the original paper describing the HGF, it is explicitly stated that the model is applicable to multivariate data (although I realize this doesn't necessariliy guarantee the software can).

Is there a way of getting the tapas HGF model to work on multivariate data that I am missing?

@ImreKertesz ImreKertesz added the hgf Issues related to HGF Toolbox label Jan 23, 2024
@alexjhess
Copy link
Collaborator

Hi @ddgpalmer,

You are correct, the HGF framework is in fact able to handle multimodal data. However, you need to make sure that you specify an appropriate observation model that handles the response data in matrix format appropriately. Check out https://www.biorxiv.org/content/10.1101/2024.02.19.581001v1 for an example application of the HGF to multimodal data (choices + RT in this case). Links to code and data are also included, so you should be able to look at the code for the response models that we used (https://gitlab.ethz.ch/tnu/code/hessetal_spirl_analysis/-/tree/master/comb_obs_models?ref_type=heads). Hope this helps!

Cheers,
Alex

@alexjhess alexjhess self-assigned this Feb 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
hgf Issues related to HGF Toolbox
Projects
None yet
Development

No branches or pull requests

3 participants