According to its help file, st_matrix(string scalar name, real matrix X) ". . . allow[s] name to be . . . c. e() matrix such as "e(V)".
Nevertheless, using Stata 18.0 MP updated to 2024-12-18, it seems that I cannot set ereturn matrices from Mata.
The first st_matrix() in the code above executes without any problem, but the second one aborts with
ÿÿÿÿÿÿÿÿÿÿÿÿÿst_matrix():ÿÿ3300ÿÿargumentÿoutÿofÿrange
ÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿ<istmt>:ÿÿÿÿÿ-ÿÿfunctionÿreturnedÿerror
r(3300);
What am I doing wrong?
Nevertheless, using Stata 18.0 MP updated to 2024-12-18, it seems that I cannot set ereturn matrices from Mata.
Code:
mata B = 1, 2, 3, 4 st_matrix("B", B) st_matrix("e(b)", B)
ÿÿÿÿÿÿÿÿÿÿÿÿÿst_matrix():ÿÿ3300ÿÿargumentÿoutÿofÿrange
ÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿ<istmt>:ÿÿÿÿÿ-ÿÿfunctionÿreturnedÿerror
r(3300);
What am I doing wrong?
Comment