search for: preds2

Displaying 1 result from an estimated 1 matches for "preds2".

Did you mean: preds
2009 Dec 16
0
lasso regression coefficients
..."coefficients") based on the created *model ** preds=predict.lars(model) for(i in 1:10){ est[i]=preds$coef[2]*x[i] } y.estimated=est+1+noise *Then, I apply the same function, predict.lars, but this time with type="fit". * preds2=predict.lars(model,my_data)* When I compare the *y.estimated *to *preds2$fit[,2] *I see that they are not equal... I provide you with the returned results: *y.estimated:* [2.855597 1.259374 1.673388 1.625999 0.337993 -1.672998 -1.055416 2.423278 4.092116 -1.595545] *preds2$fit[,2]:* [2.9120...