Questions tagged [loess]

Local regression - a form of non-parametric regression.

Local regression - a form of non-parametric regression. Useful for scatter plot smoothing. See https://en.wikipedia.org/wiki/Local_regression

200 questions
-1
votes
1 answer

"Replacement has n rows, data has p" error message with loess()

This question is related to this one. I'm trying to use loess() inside ggplot2's stat_smooth(), this way : ggplot(data = mydf, aes(x=time, y=pdm, z=surface)) + geom_point() + stat_smooth(col="red") + stat_quantile(formula = loess(mydf$pdm ~…
François M.
  • 4,027
  • 11
  • 30
  • 81
-1
votes
1 answer

loess standard error as list object

I am looking for an easy way of automatically calling the standard error of a loess regression as an object. I can do this with lm objects, but can't figure it out with loess, and haven't had any luck searching this and other forums.
TFinch
  • 361
  • 2
  • 9
-1
votes
1 answer

Residuals calculation in series with few points (max 20)

I'm using loess to calculate the residuals. I expect for the following (small series) to find a big value of the residual for the third point y <- c(5814, 6083, 17764, 6110, 6556) x <- c(14564, 14719, 14753, 14754, 15086) >…
nigmastar
  • 470
  • 5
  • 15
-2
votes
1 answer

How do I get a smooth curve from a few data points, in R?

I am trying to plot the rate 1/t as it changes with mue. The code is given below and I have highlighted the relevant lines with input and output. library("deSolve") library("reshape") library("tidyverse") Fd <- data.frame() MUES <- c(100, 1000,…
14thTimeLord
  • 363
  • 1
  • 14
-2
votes
1 answer

Trouble normalizing data using lowess method in R:

Subset of data which is producing the same NaN error: V1 V2 V3 V4 V5 V6 V7 V8 V9 V10 V11 V12 1 10901 1147 964 84 116 91 35 1234 7831 61 440 10 2 492 6062 342 9 1886 48 3822 396 1039 30 1 173 3 289…
minoo
  • 555
  • 5
  • 20
1 2 3
13
14