Hi everyone,
i am currently coding a linear regression script for experimental datas and i wonder if it's possible to "concatenate" two or more Design Matrix for linear regression and their respective datas for a same X.
I want to do the following usual lsq minimization:
min || A X - Y ||^2
with A a (i*j) matrix, X a (j * 1) vetor , and Y a ( j * 1) vector.
Let's pretent A is a sum for n=1 to jj:
A_{1,j} = f( a , x_1 , t_1) + f( a , x_2 , t_1) + ... + f( a , x_j , t_1)
...
A_{i,j} = f( a , x_1 , t_i) + f( a , x_2 , t_i) + ... + f( a , x_j , t_i)
Now A_2 is the same, but with a different "a" (i'll call it b).
A_{1,j} = f( b , x_1 , t_1) + f( b , x_2 , t_1) +