Am 20.07.2017 um 15:31 schrieb Riccardo (Jack) Lucchetti:
On Thu, 20 Jul 2017, Sven Schreiber wrote:
> I'm wondering whether "vectorized" means by row or
by column. So is
> $vma[i+1, ] equal to transp(vec(Theta_i)), or equal to
> transp(vec(transp(Theta_i))) ?
The rows of $vma are arranged in such a way that you can mshape the
result and it "come out right".
V = $vma
print V
V_3 = mshape(V[4,], 2, 2)
OK, thanks for the example. So the answer is that each row of $vma is
transp(vec(Theta_i)), the first of the two possibilities.
(Of course, according to our discussion in Athens we should have asked
and answered this question on stackexchange; however, this is an example
where the Crossvalidated sub-area would probably be wrong because it's
not a Statistics question, and so it would have had to be Stackoverflow
instead. Quite complicated...)
thanks,
sven