Installing and using HDDM
(Mostly from here : with modifications as on Jan 22, 2022.)
I use anaconda for my package management. So the steps will be for a conda installation of python.
- install anaconda for windows 64bit
- install the build tools for visual basic (here - go all the way down and install the build tools. Everything else will just take up too much space)
in Anaconda prompt:
- conda create -n hddmEnv python=3.6.10
- conda activate hddmEnv
- conda install pandas patsy
The other blog says to downgrade pandas to version 0.20.0, but statsmodels no longer supports that version of pandas. I am just using the latest version and seeing if it fails somewhere.
EDIT: the hddm code uses the old pandas method of updating rows (uses df.ix instead of df.loc). I have updated pandas to 0.21.0 (the lowest version required by statsmodels) and it works (as in I can run the Go/No-go tutorial on the official HDDM site).
- pip install pandas==0.21.0
- conda install pymc=2.3.7
- conda install -c anaconda statmodels
- pip install kabuki
- pip install cython
- pip install HDDM==0.7.3
Then go to anaconda navigator, click on the dropdown below and you should see your new environment.