[R] question on lm or glm matrix of coeficients X test data terms

DS ds5j at excite.com
Tue Jul 8 01:56:19 CEST 2008


  is there an easy way to get the calculated weights in a regression equation?

for e.g.

if my model has 2 variables 1 and 2 with coefficient .05 and .6

how can I get the computed values for a test dataset for each coefficient?




so I want to get .5, 60 back in a vector.  This is a one row example but I would want to get a matrix of multiplied out coefficients and terms for use in comparing contribution of variables to final score.  As in a scorecard using logistic regression.

Please advise.



More information about the R-help mailing list