search for: locpoli

Displaying 20 results from an estimated 26 matches for "locpoli".

Did you mean: locpoly
2011 Aug 09
1
How to pass different arguments to a function within lapply()?
Hi all, I have a data frame called "rst", see below: ------------------------------------------------------------------------------------------ # This is a paste able example # In case you don't have "KernSmooth" package installed, please uncomment below line. # install.packages("KernSmooth") library(KernSmooth) rst <- data.frame(hsp = rnorm(23), dal =
2003 May 18
2
derivatives from loess (not locpoly)?
is there a way of estimating derivative curves, similar to the ones we get from 'locpoly', from 'loess' estimation. i am interested in estimation of 1st and 2nd derivatives... --------------------------------- [[alternate HTML version deleted]]
2006 Feb 23
2
locpoly
Dear R Users, When using locpoly function, number of output values is smaller than the number of input values. How is it possible to get number of output component $y equal to the number of inputs. Thanks a lot, Amir --------------------------------- [[alternative HTML version deleted]]
2008 May 11
0
loess and locpoly
Dear list, I've got a question concerning difference between loess and locpoly. I have to use a plug-in method to chose a bandwith so I take locpoly method to fit a curve. My problem is:I know how to get predicted values in loess: m=loess(y~x) y_fitted=predict(m). But how to get the same in locpoly? I computed like this: bw=dpill(x, y, blockmax = 5, divisor = 20,trim = 0.01, proptrun =
2004 Mar 05
0
locpoly (was: no subject)
1. Please do make use of the subject line. 2. Please (re-)read the description of the `range.x' argument in ?locpoly: it's suppose to be a vector of min and max x values. 3. I hope you realize how grossly inefficient this computation is... Andy > From: klea lambrou > > > hello R-users.could you please help me on this one?i have > 2 vectors x1 > and y1 and
2008 Sep 23
1
bandwidth selection for locpoly
Hello All, Is there a local bandwidth selection routine for local polynomial regression (locpoly) ? Thanks Chinthaka Kuruwita
2011 Jul 16
1
How does locpoly (KernSmooth package) estimate densities?
Dear R users, I am currently using the locpoly function from the KernSmooth package to estimate densities. However, I have some trouble understanding how this estimation technique is implemented in R. My main concern comes from the fact that this function gives negative estimates when the bandwidth is sufficiently large (mainly in the tails of distributions). I have read some articles on this
2004 Oct 20
2
Plotting a 3D surface
Hi Does R have a function or has someone written a function to draw a 3d surface from a scatter plot of values using either ksmooth or locpoly. OR a transform function a that merges x relation z and y relation z to (x,y) relation z? I tried out scatterplot3d but it seems it would take a bit of work to get scatterplot3d to draw a curved surface. Lawrence
2000 Jan 24
2
help in fortran code
I would like to get the fortran code for the functions locpol and dpill in the kernsmooth library , the purpose is to incorporate other selection criterion for the bandwidth in which a varying bandwidths are replaced instead of the constant bandwidth. I will send you back the improved version as soon as I get the fortran code for the upper mention functions. ((LOCPOLY and DPILL )))
2006 Mar 29
2
bivariate case in Local Polynomials regression
Hi: I am using the package "KernSmooth" to do the local polynomial regression. However, it seems the function "locpoly" can only deal with univariate covaraite. I wonder is there any kernel smoothing package in R can deal with bivariate covariates? I also checked the package "lcofit" in which function "lcofit" can indeed deal with bivariate case. The
2003 Nov 25
1
Something broken with update?
Updating my 1.8.0 R installation (>update.packages() ) I obtain the following (SORRY FOR THE LENGTH OF THE LOG BUT IT HELPS!!!): ................ downloaded 135Kb KernSmooth : Version 2.22-11 in /usr/lib/R/library Version 2.22-12 on CRAN Update (y/N)? y mgcv : Version 0.9-3.1 in /usr/lib/R/library Version 0.9-6 on CRAN Update (y/N)? y trying URL
2006 Jul 17
3
information about a function
Hi people, I am new in this list and could not find a FAQ for it in particular, furthermore I could not find my question answered in the official R FAQ or docs. I have simply something like this: > f<-approxfun(data[,1],data[,2]) and f is: > f function (v) .C("R_approx", as.double(x), as.double(y), as.integer(n), xout = as.double(v), as.integer(length(v)),
2004 Mar 05
0
(no subject)
hello R-users.could you please help me on this one?i have 2 vectors x1 and y1 and both have the same size.i want to use the locpoly function from the kernsmooth package in order to estimate a regression function.at each estimation i want to leave one observation out,and i want my estimation to be at the observation i left out.i tried : for (j in 1:length(x1)) +
2004 Aug 09
1
returns the value of a polynomial of degree n evaluated at x.
> Background: > OS: Linux Mandrake 9.1 > release: R 1.9.0 > editor: Xemacs 21.4 > frontend: ESS 5.1.23 > --------------------------------- > > Colleagues > Is there a function in R that is similar to polyval in matlab? (y = polyval(p,x) returns the value of a polynomial of degree n evaluated at x. The input argument p is a vector of length n+1 whose elements are the
2023 Oct 26
1
Inquiry about bandwidth rescaling in Ksmooth
Dear Sir, Madam, or to whom this may concern, my name is Jan Failenschmid and I am a Ph.D. student at Tilburg University. For my project I have been looking into different types of kernel regression estimators and corresponding R functions. While comparing different functions I noticed that stats::ksmooth returned different estimates for the same bandwidth as other kernel regression estimators
2023 Oct 26
1
Inquiry about bandwidth rescaling in Ksmooth
Apologies in advance if my comments don't help, in which case, no need to respond, but I noted in ?ksmooth: "bandwidth the bandwidth. The kernels are scaled so that their quartiles (viewed as probability densities) are at ? 0.25*bandwidth." So, could this be a source of the discrepancies you cited? Given that ?ksmooth explicitly says: "Note: This function was implemented for
2002 Jan 31
1
MacOS X: Packages KernSmooth and cluster won't compile
Hello, I'm using R 1.40 on MacOS X X.1.2 (installed via the fink package manager). To upgrade my installed packages, I tried to use update.packages() today. All went well for most packages, with the exception of KernSmooth and cluster. In both cases, libraries were not found although I think they are present. Here's what happened: ---------------------------------- >
2004 Aug 09
0
returns the value of a polynomial of degree n evaluated a t x.
Try something like: install.packages("polynom") library(polynom) predict(polynomial(rev(p)), x) HTH, Andy > From: McClatchie, Sam (PIRSA-SARDI) > > > Background: > > OS: Linux Mandrake 9.1 > > release: R 1.9.0 > > editor: Xemacs 21.4 > > frontend: ESS 5.1.23 > > --------------------------------- > > > > Colleagues > >
2007 May 16
0
effective df in local polinomial regression
Hallo R-users, I would like to know if there is a way to get the effective degrees of freedom in local polinomial regression. At the moment, to carry out the local polinomial regression, I am using the function locpoly() in library KernSmooth (I need to estimate both the regression function and its derivatives, up to the 3rd one). Thanks, Simone -- Simone Vantini MOX - Modeling and
2010 Jul 24
0
local polynomial with differnt kernal functions
Hi, R users   I need to use the function (locpoly) to fit a local poynomial regression model, The defult for kernal function is " normal" , but  I need to use different kernal functions such as :Uniform,Triangular,Epanechnikov,...... Could someone help me define these functions to fit local polynomial regression model?. Email:assaedi76@yahoo.com     Thanks alot [[alternative