Filling vector with appropriate matrix elements
Posted: Mon Aug 11, 2014 1:17 am
Hi,
I have one problem - I want to set vector which is composed of some elements of variance-covariance matrix of residuals. I place example below. I have matrix like above and I need vector with 4 rows filled with elements from the matrix:
-c1,r2/c3,r2
1
-c3,r1/c2,r2
c4,r3/c4,r4
where c and r are columns and rows of matrix which I placed above.
Could anyone give me some advice or the syntax? I really need it.
Thank you in advance.
I have one problem - I want to set vector which is composed of some elements of variance-covariance matrix of residuals. I place example below. I have matrix like above and I need vector with 4 rows filled with elements from the matrix:
-c1,r2/c3,r2
1
-c3,r1/c2,r2
c4,r3/c4,r4
where c and r are columns and rows of matrix which I placed above.
Could anyone give me some advice or the syntax? I really need it.
Thank you in advance.