Hello
I am relatively new to using vba. I have some code which I need to interpret re matrices.
1) explain the nature of the output matrix based on the procedure in the code
2) verify that all matrix multiplications are valid in terms of matrix size compatibility
Function Matrix_1(y As Variant, X As Variant) As Variant
Dim Xtrans As Variant
Dim temp As Variant
Dim output() As Variant, r() As Double, t() As Double
Xtrans = Application.Transpose(X)
XtX = Application.MInverse(Application.MMult(Xtrans, X))
temp = Application.Mult(XtX, Xtrans)
temp_out = Application.MMult(btemp, y)
Result = temp_out
End Function
Please help! thanks!