0
這裏是我的代碼位數REG代碼
n=10000;
k=2;
v=(n-k);
Y=trnd(v);
x1=ones(n,1);
x2=randn(n,1);
X=[x1 x2];
u=randn(n,1);
Ols.Betahat=(X'*X)^(-1)X'*Y
但我得到這個錯誤:
The size of the matrix is not consistent. I attached an image of the statement