Ralf.Kloessinger@student.fh-nuernberg.de
2002-Mar-29 19:16 UTC
[R] How to get the datapoints of an density estimation with locfit?
Hello!!! I'm just a beginner of R. I work with locfit to get the density from an numeric vector. It looks good when I plot the graph, but I need the output data of locfit. For example I need somthing like that (only integer values for the input): numeric vector (input of locfit) density (output of locfit) 1 0.05.... 2 0.04.. 3 0.01 ... Thank you for your help and your time. Ralf Kloessinger -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.- r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html Send "info", "help", or "[un]subscribe" (in the "body", not the subject !) To: r-help-request at stat.math.ethz.ch _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._
=?iso-8859-1?Q?M?der_J?rg?=
2002-Mar-30 11:06 UTC
[R] How to get the datapoints of an density estimation with locfit?
Hello, i'm not sure but try results <- locfit(....) after that you can have a look at the saved things with names(results) gruess joerg> Hello!!! > > I'm just a beginner of R. > I work with locfit to get the density from an numeric vector. It looks > good when I plot the graph, but I need the output data of locfit. For > example I need somthing like that (only integer values for the input): > numeric vector (input of locfit) density (output of locfit) > 1 0.05.... > 2 0.04.. > 3 0.01 > ... > > Thank you for your help and your time. > > Ralf Kloessinger >-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-> r-help mailing list -- Read > http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html Send "info", "help", or > "[un]subscribe" > (in the "body", not the subject !) To: > r-help-request at stat.math.ethz.ch >_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._ -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.- r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html Send "info", "help", or "[un]subscribe" (in the "body", not the subject !) To: r-help-request at stat.math.ethz.ch _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._
Roger Peng
2002-Mar-30 18:43 UTC
[R] How to get the datapoints of an density estimation with locfit?
As far as I know, locfit does not store its estimates. You have to use the fitted.values() function. So, something like: library(locfit) x <- rnorm(200) f <- locfit( ~ x) fhat <- fitted.values(f) cbind(x, fhat) I think that will give you what you want. -roger _______________________________ UCLA Department of Statistics rpeng at stat.ucla.edu http://www.stat.ucla.edu/~rpeng On Fri, 29 Mar 2002, Ralf.Kloessinger at student.fh-nuernberg.de wrote:> Hello!!! > > I'm just a beginner of R. I work with locfit to get the density from > an numeric vector. It looks good when I plot the graph, but I need the > output data of locfit. For example I need somthing like that (only > integer values for the input): numeric vector (input of locfit) > density (output of locfit) 1 0.05.... 2 0.04.. 3 0.01 ... > > Thank you for your help and your time. > > Ralf Kloessinger > -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.- > r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html > Send "info", "help", or "[un]subscribe" > (in the "body", not the subject !) To: r-help-request at stat.math.ethz.ch > _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._ >-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.- r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html Send "info", "help", or "[un]subscribe" (in the "body", not the subject !) To: r-help-request at stat.math.ethz.ch _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._
Possibly Parallel Threads
- How to get the datapoints of an density estimationwithlocfit?
- Kernel Density estimation - locfit package
- How to translate the 2D-density matrix (the output of bkde2D function) into matrix of datapoints' amounts?
- locfit troubles
- The Claw Density and LOCFIT