put you data into stata with 6 variables and 5 observations, the variables are x1 x2 x3 x4 x5 and y, we then put x1 x2 x3 x4 x5 into matrix X by using "mkmat x*, mat(X)" and put y into matrix Y, then solve the matrix equation using mat S=inv(X)*Y (in algebra, we can think the solution is as XS=Y, so S=X^(-1)*Y), "svmat S" put the solution back in the data with variable name S1