So I have this set of samples in C1 in minitab, and I make 200 resamples from this data and store it in C2-C201. Now I want to calculate the sample variance from each of these columns and then save the result in a seperate column. I can get it to calculate the sample variance for each of the columns, but I am having trouble saving the results. This is my current macro:
GMACRO #Starts the global macro
Resample #Names the macro
DO K1=2:201
Sample 16 'Data' CK1;
Replace. #Resampling
Name c202 "Variance"
Statistics CK1; # Calculate S^2
Variance 'Variance'.
ENDDO
ENDMACRO #Ends the macro
This does the job, but it just overwrites the same cell over and over. The optimal thing would be for it to just save it like c202(K1) for each iteration, but I'm not sure how to implement this.