Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • Saving results of Looping in Matrix

    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?

  • #2
    see help simulate.
    Since it's not related to Mata you should have posted in the Stata forum.

    Comment

    Working...
    X