Re: [R] R question about prediction from a fitted model

2008-04-26 Thread David Winsemius
Lisa <[EMAIL PROTECTED]> wrote in news:[EMAIL PROTECTED]: > Hi Jorge, > > ... the new question is, > is there any prediction for the cox model? I tried > predict(Surv(y~x),newdata), it only gave the fitted values. Any clue > on this? thanks a lot! I cannot claim great expertise in this area,

Re: [R] R question about prediction from a fitted model

2008-04-25 Thread Lisa
Hi Jorge, thank you very much for your reply. I checked and have got the prediction of new values for lm or glm or nls, the new question is, is there any prediction for the cox model? I tried predict(Surv(y~x),newdata), it only gave the fitted values. Any clue on this? thanks a lot! On 4/25/08,

Re: [R] R question about prediction from a fitted model

2008-04-25 Thread Jorge Ivan Velez
Hi Lisa, See examples in ?predict.lm HTH, Jorge On Fri, Apr 25, 2008 at 7:47 PM, Lisa <[EMAIL PROTECTED]> wrote: > Hi, I have a question about predicting new values from a fitted model in R. > > For example, if i fit a linear model > > fit<-lm(y~x) > > predict(fit) will give the fitted value

[R] R question about prediction from a fitted model

2008-04-25 Thread Lisa
Hi, I have a question about predicting new values from a fitted model in R. For example, if i fit a linear model fit<-lm(y~x) predict(fit) will give the fitted values for each x. I am wondering if there is a way to do some prediction of the fitted for some new values of x that are not in the d