The methods introduced in this work have been also implemented in the Hmsc R package https://github.com/hmsc-r/HMSC
The analysis codes are dependent on compiled C++ codes and mtimesx package https://se.mathworks.com/matlabcentral/fileexchange/25977-mtimesx-fast-matrix-multiply-with-multi-dimensional-support
The real species names were anonimated in the data files.