Displaying 1 result from an estimated 1 matches for "cusuma".
Did you mean:
cusum
2009 Jan 12
1
Help with storage of each matrix generated in a loop
...cumulative sum them all and store all of those randomized CUSUMed datasets
for further analysis and creation of the simulation envelope in the CUSUM
chart. But I can't manage to store all of them, the script I've written only
stores the last randomized matrix in the variable I called "cusumA".
Here's the script I've written:
mat <- matrix(data=rep(c(1,2,3,4,5), 16), nrow=16, ncol=5)
# The matrix that will be sampled
A <- matrix(data=0, nrow=16, ncol=5)
# The variable that will store the sampled matrix
for(i in 1:1000) {
# I want to do it 1000 times
for(j in 1:nrow(...