[R] Smooth monotone estimation on R

From: Rafael Sebastian <rafa.sebastian_at_uv.es>
Date: Tue 07 Jun 2005 - 22:46:38 EST


Hello,

We would like to apply the smooth monotone function to our data which correspond to a non-linear function. We follow the example posted on the web, but in our case it did not apply. We always get a straight line in response. Which parameters we should change.

  ind.basis = create.bspline.basis(c(min(time),max(time)),nbasis=38,norder=4)   Wfdob = data2fd(rep(0,length(time)),time,ind.basis)   fd = data2fd(alphaest,time,ind.basis)
  solution= smooth.monotone(time,alphaest,Wfdobj=Wfdob,lambda=0.1, conv=0.01)

  Alpha = solution$beta[1]+solution$beta[2]*eval.monfd(time,solution$Wfdobj)   plot(Alpha)   

Thanks a lot.
Best,
Rafa

        [[alternative HTML version deleted]]



R-help@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html Received on Tue Jun 07 22:56:56 2005

This archive was generated by hypermail 2.1.8 : Fri 03 Mar 2006 - 03:32:26 EST