The current code therefore alternates between using the mu_SD and init_beta_SD to create the random effects SD, which seems incorrect. This can also be seen in example output of mlVARsim(), where every second column has a different SD:
Currently, the sparsity of the temporal and contemporaneous networks is fixed to .5, and the SD of the fixed temporal effects is fixed to 1. For simulation purposes, letting the user modify these arguments (with defaults set to the current fixed values) could be helpful.
I’d be happy to prepare a pull request to implement these changes if you find them useful. Thank you for your work on this very useful package!
Hello, I have been using and modifying the
mlVARsim()
function for a simulation study and want to make some minor suggestions for improvement.Random Effects Standard Deviation
The following line code currently creates the SD for the Omega matrix:
If I’m not mistaken,
nNode
should be replaced withnTemporal
for theinit_beta_SD
, as these are the random effects for the temporal parameters:The current code therefore alternates between using the
mu_SD
andinit_beta_SD
to create the random effects SD, which seems incorrect. This can also be seen in example output ofmlVARsim()
, where every second column has a different SD:Minor Additional Suggestions
Currently, the sparsity of the temporal and contemporaneous networks is fixed to .5, and the SD of the fixed temporal effects is fixed to 1. For simulation purposes, letting the user modify these arguments (with defaults set to the current fixed values) could be helpful.
I’d be happy to prepare a pull request to implement these changes if you find them useful. Thank you for your work on this very useful package!