mata r function

  1. A

    R function in MATA?

    Hello, I have the following question on a R function which a want to use in MATA (the matrix programming language in STATA) In R you have the which() function, which works as follows. Suppose you have a matrix Z: 0 0 0 1 0 0 0 1 0 99 99 1 99 99 99 99 99 99 then...