Dear all,
I have 9 variables and for each observation in my dataset I want to:
Thank you in advance for your help.
Regards,
Nikos
I have 9 variables and for each observation in my dataset I want to:
- Create a 3x3 matrix of the following form T=(var1, var2, var3\ var4, var5, var6\ var7, var8, var9)
- Calculate the eigenvectors and eigenvalues
Code:mata:X=. mata:L=. mata:eigensystem(T, X, L)
- Perform some additional calculations that in the end will produce a 3x3 matrix
- Finally, create 9 new variables that will contain the elements of my final matrix
Thank you in advance for your help.
Regards,
Nikos
Comment