search for: dizzed

Displaying 1 result from an estimated 1 matches for "dizzed".

Did you mean: dazzed
2010 Oct 26
2
anomalies with the loess() function
...loess() (always!!!) #I generate 2 fictious vectors a<-sample(c(sample(1:1000,100),rep(NA,50))) b<-sample(c(sample(1:1000,100),rep(NA,50))) #lm() has no problems..can handle the missing values plot(a,b) abline(lm(b~a),col="red",lwd=2) #loess return a plain mess like it would go dizzed with ordering or something. #Off course lowess() turns useless in presence of NAs, I don't even try it. lines(loess(b~a)) #I get rid off NAs and compare lowess() & loess() performance, expecting to #obtain the same result as both functions implement local weighted regressions a<-na.om...