[R] plotting confidence bands from predict.nls

Laurent Rhelp LaurentRHelp at free.fr
Sun May 8 17:11:40 CEST 2011


Le 07/05/2011 06:17, Penny Bilton a écrit :
> I am trying to find a confidence band for a fitted non-linear curve. I 
> see that the predict.nls function has an interval argument, but a 
> previous post indicates that this argument has not been implemented.  
> Is this still true? I have tried various ways to extract the interval 
> information from the model object without success. My code is:
>
> Model.predict <-  predict(My.nls.model,  se.fit=TRUE,  interval = 
> "confidence",  level = 0.95)   ,
>
> where My.nls.model is an nls object, I was able to extract the 
> predictions okay.
>
>
> Thank you for your help.
> Penny.
>
> ______________________________________________
> R-help at r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide 
> http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.
>
You can use the bootstrap methodology using the predicted values 
assessed through the N replications.



More information about the R-help mailing list