On Wed, 19 Dec 2012, Andreas Noack Jensen wrote:
I think it would be a good thing if Gretl accepted zero dimension
matrices
more generally. For example, letting zeros(5,0)*zeros(0,5) return a 5x5
zero matrix and mols(mnormal(10,2),zeros(10,0),&res) return a zeros(0,2)
matrix a overwrite res with the values from mnormal(10,2).
The mols() function now does this in CVS. Example:
<hansl>
Y = mnormal(10,2)
X = zeros(10,0)
U = zeros(10,2)
V = zeros(4,4)
B = mols(Y, X, &U, &V)
print B Y U V
</hansl>
The residuals == Y, and the parameter estimates and their variance
are both null.
Allin Cottrell