Yeah, I did look at the help(loess) page, but I wasn't really sure what to do with that. I was inputting it as:
> test<-loess(date ~ q,data.frame(date,q),span=0.5) > test Call: loess(formula = date ~ q, data = data.frame(date, q), span = 0.5) Number of Observations: 96 Equivalent Number of Parameters: 8.08 Residual Standard Error: 27.82 > check<-predict(test,date=date) > check [1] 1959.164 1959.516 1963.379 1967.121 1963.781 1970.601 1958.056 1948.846 [9] 1954.247 1954.718 1969.460 1960.974 1949.845 1962.436 1968.374 1954.247 [17] 1956.135 1948.852 1948.846 1957.893 1963.055 1955.327 1961.453 1960.405 [25] 1956.135 1963.065 1959.358 1954.478 1954.415 1964.323 1963.255 1953.139 [33] 1966.048 1959.353 1961.817 1959.894 1958.251 1964.914 1960.157 1964.656 [41] 1964.164 1949.873 1965.500 1968.323 1962.196 1961.656 1954.977 1969.196 [49] 1962.318 1952.576 1962.655 1968.031 1963.445 1967.856 1961.323 1949.032 [57] 1954.687 1955.613 1982.081 1960.736 1963.466 1974.468 1970.164 1954.212 [65] 1957.928 1957.893 1961.985 1966.180 1963.283 1963.379 1964.387 1970.017 [73] 1959.353 1969.925 1963.111 1962.667 1963.417 1964.029 1965.241 1964.323 [81] 1964.405 1963.036 1981.359 1968.146 1968.374 1970.050 1963.089 1959.667 [89] 1966.129 1958.081 1964.029 1968.374 1967.856 1955.758 1954.619 1965.227 > So I guess I'm inputting the formula wrong then? But from looking at the help(formula) page, I still wasn't sure what it's looking for. Thanks. Billy -- View this message in context: http://r.789695.n4.nabble.com/Difficulty-with-loess-function-tp3387537p3387777.html Sent from the R help mailing list archive at Nabble.com. ______________________________________________ [email protected] mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.

