[R] question about 'coef' method and fitted_value calculation

2006-08-21 Thread jz7
Dear all, I am trying to calculate the fitted values using a ridge model (lm.ridge(), MASS library). Since the predict() does not work for lm.ridge object, I want to get the fitted_value from the coefficients information. The following are the codes I use: fit =

Re: [R] question about 'coef' method and fitted_value calculation

2006-08-21 Thread Berton Gunter
. - George E. P. Box -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of [EMAIL PROTECTED] Sent: Monday, August 21, 2006 2:40 PM To: r-help@stat.math.ethz.ch Subject: [R] question about 'coef' method and fitted_value calculation Dear all, I am trying

Re: [R] question about 'coef' method and fitted_value calculation

2006-08-21 Thread Gabor Grothendieck
Try library(MASS) y.lmr - lm.ridge(y ~., longley) coefs - print(y.lmr) On 8/21/06, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Dear all, I am trying to calculate the fitted values using a ridge model (lm.ridge(), MASS library). Since the predict() does not work for lm.ridge object, I want