can someone please guide me through the process of saving the results of a loop in a matrix?
do i need to generate a matrix before the loop and then fill it in?
basically i am doing a power analysis of a statistical test (durbin H ), i need to perform the test 1000 times running the loop from 1 to 1000 and then saving the result (0 or 1) of each test in a column matrix, so that i can later add the elements of the matrix and find the power of the test?
do i need to generate a matrix before the loop and then fill it in?
basically i am doing a power analysis of a statistical test (durbin H ), i need to perform the test 1000 times running the loop from 1 to 1000 and then saving the result (0 or 1) of each test in a column matrix, so that i can later add the elements of the matrix and find the power of the test?
Comment