gmwm icon indicating copy to clipboard operation
gmwm copied to clipboard

stack gmwm-results in a vector

Open philippcla opened this issue 8 years ago • 2 comments

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

philippcla avatar Jun 02 '16 15:06 philippcla