-
as seen on Stack Overflow
- Search for 'Stack Overflow'
Hi all,
How can I extract what the loess function has fitted for the polynomial function, for a particular x of my data?
Thanks,
Tal
>>> More
-
as seen on Stack Overflow
- Search for 'Stack Overflow'
Rendered project available here. The line is supposed to be a trend line (as rendered with LOESS), but it merely follows each data point instead.
I am no stats wonk, so maybe it makes sense that a LOESS function’s output would match the input as seen in the above example, but it strikes me as being…
>>> More
-
as seen on Stack Overflow
- Search for 'Stack Overflow'
I need to smooth some simulated data, but occasionally run into problems when the simulated ordinates to be smoothed are mostly the same value. Here is a small reproducible example of the simplest case.
> x <- 0:50
> y <- rep(0,51)
> loess.smooth(x,y)
Error in simpleLoess(y, x, w…
>>> More
-
as seen on Stack Overflow
- Search for 'Stack Overflow'
Here's my code:
qplot(data=sites, x, y, main="Site 349")
(p <- qplot(data = sites, x, y, xlab = "", ylab = ""))
(p1 <- p + geom_smooth(method = "loess",span=0.5, size = 1.5))
p1 + theme_bw() + opts(title = "Site 349")
Some of the LOESS lines and confidence intervals go below zero, but I…
>>> More
-
as seen on Stack Overflow
- Search for 'Stack Overflow'
Background
Right now, I'm creating a multiple-predictor linear model and generating diagnostic plots to assess regression assumptions. (It's for a multiple regression analysis stats class that I'm loving at the moment :-)
My textbook (Cohen, Cohen, West, and Aiken 2003) recommends plotting each…
>>> More