gmwm
gmwm copied to clipboard
stack gmwm-results in a vector
Hello
I have the following code:
gmwm_values = gmwm(model = my_gmwm_model, data = vector_of_interest)
This works fine.
Now, if I have a for-loop, where I have multiple "vector_of_interests" I will not be able to store the "gmwm_values" in a vector-like-manner. The code would be something like this
for (i in seq(1,length,1))
{
gmwm_values[i] = gmwm(model = my_gmwm_model, data = vector_of_interest[,i])
}
Is there some other way to assemble the gmwm-results? Thanks