## Not run: ------------------------------------
# # Example (Old Faithful geyser)
# xdat=faithful[[2]] # waiting time
# ydat=faithful[[1]] # eruption duration
# u=seq(40,100,len=1000)
# h_oscv=round(h_OSCV_reg(xdat,ydat,0),digits=4)
# l=loclin(u,xdat,ydat,h_oscv)
# dev.new()
# plot(xdat,ydat,pch=20,cex=1.5,cex.axis=1.7,cex.lab=1.7,xlab="waiting time",
# ylab="eruption duration")
# lines(u,l,'l',lwd=3)
# title(main="Data and LLE",cex.main=1.7)
# legend(35,5,legend=paste("h_OSCV=",h_oscv),cex=2,bty="n")
# legend(80,3,legend="n=272",cex=2,bty="n")
## ---------------------------------------------
Run the code above in your browser using DataLab