Skip to content

find a function for a random curve

3 messages · Xiaoyu Lu, S Ellison, Rolf Turner

#
You'll need to apply the smoothing function to the data separately, store that and plot the curve (?) fom that.

You can plot a line for many model fits using the associated predict() method and if necessary specifying a newdata data frame containing neatly-spaced predictors; look up the generic ?predict and predict.lm for a typical case. predict.nlm and predict.loess also exist and work much the same way. 

S Ellison 


*******************************************************************
This email and any attachments are confidential. Any use...{{dropped:8}}
#
Your question is very vague, so it's hard to know what to suggest.
Please note the exhortation that appears at the bottom of every
r-help message:
It is possible that splinefun() is what you are looking for.

     cheers,

         Rolf Turner
On 10/07/13 22:29, Xiaoyu Lu wrote: