close
Warning:
Can't synchronize with repository "(default)" (/var/svn/tolp does not appear to be a Subversion repository.). Look in the Trac log for more information.
File sample1.tol, 366 bytes (added by Jorge, 19 years ago) |
sample for bug 417
|
Line | |
---|
1 | Set sX = [["diag", 1, 2, 3, 4]]; |
---|
2 | Matrix y = Col(1,1,1,1); |
---|
3 | Set reg = SparseLinearRegression("", y, sX); |
---|
4 | Set vreg = View(reg, "Std"); |
---|
5 | Set reg1 = SparseLinearRegression("ALL", y, sX); |
---|
6 | Set reg2 = SparseLinearRegression("BETA:SAMPLE=100,1", y, sX); |
---|
7 | Matrix X = ((1,0,0,0), |
---|
8 | (0,2,0,0), |
---|
9 | (0,0,3,0), |
---|
10 | (0,0,0,4)); |
---|
11 | Set reg_Dense =LinReg(y, X); |
---|
Download in other formats: