Dear stata users,

I would like to store a matrix and the number of observations after my eclass program. In this simple example the output is a 6x6 matrix but of course it can contain n elements of the varlist. I am confused because some columns are varying strings which should be stored as macros or colnames? Notice that strings have different categories depending on the other (numeric) variables.
variable sd rh0(min) cy rh0(max) ph
x1 1.145 0.950 string1 0.950 string1
x2 1.155 0.651 string2 0.660 string2
x3 1.035 0.25 string3 0.254 string3
x4 0.542 0.550 string4 0.552 string4
x5 0.663 0.247 string5 0.250 string5








Many thanks
Santiago C