I am working on running simulations in R for my group based on output from M-SURGE models. One difficulty we have run into is generating design matrices within R which are compatible with the M-SURGE formulation.
Is it possible to call M-SURGE from the command line so that it outputs just the design matrices for a particular data set and GEMACO model? We need to do this since we are dealing with simulations and so the 'data set' is dynamic.
I am also looking at reconstructing the process of generating the matrices solely within R, but I would rather use M-SURGE directly to avoid future incompatibility.
Best regards,
Krzysztof Sakrejda-Leavitt