Re: [R] help in density estimation

2010-09-23 Thread Ted Harding
There was a typo error in my code below. See the inserted correction. On 23-Sep-10 17:05:45, Ted Harding wrote: > On 23-Sep-10 16:52:09, Duncan Murdoch wrote: >> On 23/09/2010 11:42 AM, wangguojie2006 wrote: >>> b<-runif(1000,0,1) >>> f<-density(b) >> >> f is a list of things, including x value

Re: [R] help in density estimation

2010-09-23 Thread wangguojie2006
You guys are really good. Thanks. -- View this message in context: http://r.789695.n4.nabble.com/help-in-density-estimation-tp2552264p2552484.html Sent from the R help mailing list archive at Nabble.com. __ R-help@r-project.org mailing list https://st

Re: [R] help in density estimation

2010-09-23 Thread Greg Snow
AM > To: r-help@r-project.org > Subject: [R] help in density estimation > > > Hi, guys, > > I'm using kernel "density" estimation. But how can I return to a > density > estimation for a fixed point? > > For example, > > b<-runif(10

Re: [R] help in density estimation

2010-09-23 Thread Ted Harding
On 23-Sep-10 16:52:09, Duncan Murdoch wrote: > On 23/09/2010 11:42 AM, wangguojie2006 wrote: >> b<-runif(1000,0,1) >> f<-density(b) > > f is a list of things, including x values where the density is > computed, > and y values for the density there. So you could do it by linear > interpolation

Re: [R] help in density estimation

2010-09-23 Thread Duncan Murdoch
On 23/09/2010 11:42 AM, wangguojie2006 wrote: b<-runif(1000,0,1) f<-density(b) f is a list of things, including x values where the density is computed, and y values for the density there. So you could do it by linear interpolation using approx or approxfun. For example > b <- runif(1000,

[R] help in density estimation

2010-09-23 Thread wangguojie2006
Hi, guys, I'm using kernel "density" estimation. But how can I return to a density estimation for a fixed point? For example, b<-runif(1000,0,1) f<-density(b) How can I get the value of density(b) at b=0.5? Your help is extremely appreciated. Thanks. Jay -- View this message in context: ht