Re: [R] Problems using lm in combination with predict

2007-08-06 Thread Frede Aakmann Tøgersen
My modelmatrix is of dimension 28x4 Then I want to make use of the function predict because there confidence.intervals are include. My idea was: mod - lm(y~Worktime+Vacation+Illnes+Bankholidays) newdate=data.frame(x=c(324,123,0.9,0.1)) Perhaps you want to specify newdate like

Re: [R] Problems using lm in combination with predict

2007-08-06 Thread Petr PIKAL
,newdate) And get this error. Yours, Maja Original-Nachricht Datum: Sat, 4 Aug 2007 04:42:14 -0700 (PDT) Von: Stephen Tucker [EMAIL PROTECTED] An: Maja \\Schröter\\ [EMAIL PROTECTED], r-help@stat.math.ethz.ch Betreff: Re: [R] Problems using lm in combination

[R] Problems using lm in combination with predict

2007-08-04 Thread Maja Schröter
Hello everybody, I'm trying to predict a linear regression model but it does not work. My Model: y = Worktime + Vacation + Illnes + Bankholidays My modelmatrix is of dimension 28x4 Then I want to make use of the function predict because there confidence.intervals are include. My idea was:

Re: [R] Problems using lm in combination with predict

2007-08-04 Thread Stephen Tucker
I think you need predict(mod,newdate) instead of predict(y,newdate) --- Maja Schröter [EMAIL PROTECTED] wrote: Hello everybody, I'm trying to predict a linear regression model but it does not work. My Model: y = Worktime + Vacation + Illnes + Bankholidays My modelmatrix is of

Re: [R] Problems using lm in combination with predict

2007-08-04 Thread Maja Schröter
PROTECTED] An: Maja \\Schröter\\ [EMAIL PROTECTED], r-help@stat.math.ethz.ch Betreff: Re: [R] Problems using lm in combination with predict I think you need predict(mod,newdate) instead of predict(y,newdate) --- Maja Schröter [EMAIL PROTECTED] wrote: Hello everybody, I'm

Re: [R] Problems using lm in combination with predict

2007-08-04 Thread Gabor Grothendieck
: [R] Problems using lm in combination with predict I think you need predict(mod,newdate) instead of predict(y,newdate) --- Maja Schröter [EMAIL PROTECTED] wrote: Hello everybody, I'm trying to predict a linear regression model but it does not work. My Model: y