Displaying 1 result from an estimated 1 matches for "dateq_smooth_pr".
Did you mean:
dateq_smooth_pred
2011 Mar 18
1
Difficulty with 'loess' function
...unction and had no problem, but I'm
having some difficulty with loess. I am inputting the date ('date') and
discharge ('q') values using the 'scan' function, then inputting the
following:
> dateq<-data.frame(date,q)
> dateq_smooth<-loess(dateq,span=.5)
> dateq_smooth_pred<-predict(dateq_smooth,date)
> dateq_smooth_pred
[1] 1959.164 1959.516 1963.379 1967.121 1963.781 1970.601 1958.056 1948.846
1954.247
[10] 1954.718 1969.460 1960.974 1949.845 1962.436 1968.374 1954.247 1956.135
1948.852
[19] 1948.846 1957.893 1963.055 1955.327 1961.453 1960.405 1956.135 196...