[R] Derivative of nonparametric curve

Rolf Turner r.turner at auckland.ac.nz
Tue Sep 8 21:40:49 CEST 2009


On 8/09/2009, at 9:07 PM, FMH wrote:

> Dear All,
>
> I'm looking for a way on computing the derivative of first and  
> second order of a smoothing curve produced by a nonprametric  
> regression. For instance, if we run the R script below, a smooth  
> nonparametric regression curve is produced.
>
> provide.data(trawl)
> Zone92   <- (Year == 0 & Zone == 1)
> Position <- cbind(Longitude - 143, Latitude)
> dimnames(Position)[[2]][1] <- "Longitude - 143"
> sm.regression(Longitude, Score1, method = "aicc", col = "red",   
> model = "linear")
>
> Could someone please give some hints on the way to find the  
> derivative on the curve at some points ?

See

	?smooth.spline
and
	?predict.smooth.spline

	cheers,

		Rolf Turner

######################################################################
Attention:\ This e-mail message is privileged and confid...{{dropped:9}}




More information about the R-help mailing list