Hi All
I have a Stata matrix that I want to use as an example for a separate post on Statalist. It would be nice to have the code that generates the matrix as the matrix isnt too large and I could just paste the code straight into the question. For example if I have the matrix x, I want a function that will return the matrix define code to generate said matrix. I imagine this is not too complicated.
For example, here is a matrix x which is in Stata's memory:
I want to run a command or block of code that returns to the screen (prints out):
matrix def x=1,2\3,4
Any ideas?
I have a Stata matrix that I want to use as an example for a separate post on Statalist. It would be nice to have the code that generates the matrix as the matrix isnt too large and I could just paste the code straight into the question. For example if I have the matrix x, I want a function that will return the matrix define code to generate said matrix. I imagine this is not too complicated.
For example, here is a matrix x which is in Stata's memory:
I want to run a command or block of code that returns to the screen (prints out):
matrix def x=1,2\3,4
Any ideas?

Comment