Displaying 20 results from an estimated 8000 matches similar to: "Calculating loess value"
2009 Aug 21
0
Repost - Calculating loess value
Hello,
I'm attempting to evaluate the accuracy of the probability predictions
for my model. As previously discussed here, the AUC is not a good
measure as I'm not concerned with classification accuracy but
probability accurcy.
It was suggested to me that the loess function would be a good measure
to look at.
I can see some libraries (Design) will plot the loess function as a
curve
2012 May 03
1
cannot calculate standard estimate with predict on loess
Hi,
For some reason I have been unable to use the predict function when I
desire the standard error to be calculated too. For example, when I try
the following:
l<- loess(d~x+y, span=span, se=TRUE)
p<- predict(l, se=TRUE)
I get the following error message:
Error in vector("double", length) : vector size cannot be NA
In addition: Warning message:
In N * M1 : NAs produced by
2005 Jul 12
1
getting panel.loess to use updated version of loess.smooth
I'm updating the loess routines to allow for, among other things,
arbitrary local polynomial degree and number of predictors. For now,
I've given the updated package its own namespace. The trouble is,
panel.loess still calls the original code in package:stats instead of
the new loess package, regardless of whether package:loess or
package:lattice comes first in the search list. If I
2023 Mar 23
1
loess plotting problem
Thanks, John.
However, loess.smooth() is producing a very different curve compared to the
one that results from applying predict() on a loess(). I am guessing they
are using different defaults. Correct?
On Thu, 23 Mar 2023 at 20:20, John Fox <jfox at mcmaster.ca> wrote:
> Dear Anupam Tyagi,
>
> You didn't include your data, so it's not possible to see exactly what
>
2011 Jul 12
1
LOESS function Newton optimization
I have a question about running an optimization function on an existing LOESS
function defined in R. I have a very large dataset (1 million observations)
and have run a LOESS regression. Now, I want to run a Newton-Raphson
optimization to determine the point at which the slope change is the
greatest.
I am relatively new to R and have tried several permutations of the maxNR
and nlm functions with
2023 Mar 23
1
loess plotting problem
Dear Anupam Tyagi,
You didn't include your data, so it's not possible to see exactly what
happened, but I think that you misunderstand the object that loess()
returns. It returns a "loess" object with several components, including
the original data in x and y. So if pass the object to lines(), you'll
simply connect the points, and if x isn't sorted, the points
2012 Apr 03
2
How does predict.loess work?
Dear R community,
I am trying to understand how the predict function, specifically, the
predict.loess function works.
I understand that the loess function calculates regression parameters at
each data point in 'data'.
lo <- loess ( y~x, data)
p <- predict (lo, newdata)
I understand that the predict function predicts values for 'newdata'
according to the loess regression
2010 Oct 26
2
anomalies with the loess() function
Hello Masters,
I run the loess() function to obtain local weighted regressions, given
lowess() can't handle NAs, but I don't
improve significantly my situation......, actually loess() performance leave
me much puzzled....
I attach my easy experiment below
#------SCRIPT----------------------------------------------
#I explore the functionalities of lowess() & loess()
#because I have
2012 Nov 20
2
Help with loess
Not sure what I'm doing wrong. Can't seem to get loess values. It looks like
loess is returning the same values as the input.
j <-loess(x1$total~as.numeric(index(x1)
plot(x1$total,type='l', ylab='M coms/y global',xlab='')
lines(loess(total~as.numeric(index(x1)),x1))
The plot statement works fine
No errors with the "lines" statement
But I don't
2005 Nov 17
3
loess: choose span to minimize AIC?
Is there an R implementation of a scheme for automatic smoothing
parameter selection with loess, e.g., by minimizing one of the AIC/GCV
statistics discussed by Hurvich, Simonoff & Tsai (1998)?
Below is a function that calculates the relevant values of AICC,
AICC1 and GCV--- I think, because I to guess from the names of the
components returned in a loess object.
I guess I could use
2012 Aug 08
1
Confidence bands around LOESS
Hi Folks,
I'm looking to do Confidence bands around LOESS smoothing curve.
If found the older post about using the Standard error to approximate it
https://stat.ethz.ch/pipermail/r-help/2008-August/170011.html
Also found this one
http://www.r-bloggers.com/sab-r-metrics-basics-of-loess-regression/
But they both seem to be approximations of confidence intervals and I was
wonder if there was
2010 Aug 27
3
predict.loess and NA/NaN values
Hi!
In a current project, I am fitting loess models to subsets of data in
order to use the loess predicitons for normalization (similar to what
is done in many microarray analyses). While working on this I ran into
a problem when I tried to predict from the loess models and the data
contained NAs or NaNs. I tracked down the problem to the fact that
predict.loess will not return a value at all
2011 Mar 18
1
Difficulty with 'loess' function
Hi,
I am trying to create a loess smooth from hydrologic data. My goal is to
create a smooth line that describes discharge at a certain point in time. I
have done this using the 'lowess' function 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
2010 May 31
3
What does LOESS stand for?
Dear R-community,
maybe someone can help me with this:
I've been using the loess() smoother for quite a while now, and for
the matter of documentation I'd like to resolve the acronym LOESS.
Unfortunately there's no explanation in the help file, and I didn't
get anything convincing from google either.
I know that the predecessor LOWESS stands for "Locally Weighted
2012 Mar 10
1
How to improve the robustness of "loess"? - example included.
Hi,
I posted a message earlier entitled "How to fit a line through the
"Mountain crest" ..."
I figured loess is probably the best way, but it seems that the
problem is the robustness of the fit. Below I paste an example to
illustrate the problem:
tmp=rnorm(2000)
X.background = 5+tmp; Y.background = 5+ (10*tmp+rnorm(2000))
X.specific = 3.5+3*runif(1000);
2010 May 17
1
Loess fit
Hi,
I wonder why my attempt to extend an existing loess fit to a new data set is
producing error. I was trying the following:
dat = read.csv(choose.files())
x = dat[,2]; y = dat[,1]
x.sort = sort(x)
y.loess = loess(y~x, span=0.75)
# For testing the above fit with a new dataset:
test = read.csv(choose.files()) # test data
new_x = test [,1]; new_y = test[,2]
new_x.sort = sort(new_x)
predicted
2011 Feb 07
1
tri-cube and gaussian weights in loess
>From what I understand, loess in R uses the standard tri-cube function.
SAS/INSIGHT offers loess with Gaussian weights. Is there a function in R
that does the same?
Also, can anyone offer any references comparing properties between tri-cube
and Gaussian weights in LOESS?
Thanks. - Andr?
--
View this message in context:
2010 Oct 05
2
loess and NA
Hi everyone.
I'm trying to do a loess with missing value on independant variable.
doc = c(2.27904, 2.59536, 7.44696, NA, 6.24264, 4.58400, 5.79192, 5.39502,
7.41216, 4.09440, 4.22868, 4.24620, 5.43804, 1.95528);
distance = c(26.5,56.5, 90.3, 123.0, 147.5, 176.0, 215.7, 229.3, 252.0,
325.3, 362.0, 419.3, 454.6, 470.0);
myloess = loess(doc ~ distance, na.action = na.omit);
plot(distance,
2008 Feb 03
3
Drawing a loess line
Dear all,
To draw a lowess line on a plot was a piece of cake; to draw a loess
line, however, seems not that easy. Is the loess plotting implemented
at all in relation to the loess function, or do I have to look in
add-on packages?
Thanks,
Marcin
2003 Jun 27
2
NA points in loess function
Gurus,
I used
predict(loess(Y~X));
where Y and X are of the same length. But there are same NA's in both Y and
X. Those NA's are in the same locations in Y and X. The following is the
error messageI got:
Error in "[<-"(*tmp*, , i, value = predict(loess(Y~X))) :
number of items to replace is not a multiple of replacement length
If I replaced the NA's with a