Re: [R] How to simulate from an estimated density

2010-10-25 Thread wangguojie2006
Thanks. I got it. Another question, why every time I posted something, it needs approval before it shows up? Any way I can speed up posting? -- View this message in context: http://r.789695.n4.nabble.com/How-to-simulate-from-an-estimated-density-tp3009394p3012815.html Sent from the R help

[R] How to simulate from an estimated density

2010-10-24 Thread wangguojie2006
Hi, dear fellows, I was wondering how can I simulate from an estimated density function? I used my training data set and already have estimated density values at some fixed points. I plan to simulate some data from such estimated density and compare them to my validation data set. Anyone can

[R] Help in Dirichlet Process density estimation

2010-10-17 Thread wangguojie2006
Hi, friends, I'm using DPdensity package in R to analyze my data (N=1000). The given examples in that package ran pretty good. But when I applied it to my data set, it keeps saying matrix is not pd in chol subroutine. Is there anyone has ever used such package can share some ideas? Thank you

[R] Need help for loop code, thanks

2010-10-07 Thread wangguojie2006
Dear fellows, I've been working this problem for a day and still can't see where the problem is. I really appreciate if anyone can help me out. My data is like: V1V2 v3 1 a 1.3 1 a 1.5 1 b 2.0 1 a 2.3 1 a 3.4 1 c 5.5 1

[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:

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