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,
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,
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
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
4 matches
Mail list logo