Re: [R] Question on density values obtained from kde2d() from package MASS

2014-01-23 Thread Peter Löwenberg
Hello Andy, Do you already understand kde2d output? if I run > max(tmp$z) do I take the maximum value of the 2d density? Cheers, Peter Em quinta-feira, 24 de novembro de 2011 16h12min19s UTC-2, Andreas Klein escreveu: > > Hello, > > I am a little bit confused regarding the density values obt

[R] Question on density values obtained from kde2d() from package MASS

2011-11-24 Thread Andreas Klein
Hello, I am a little bit confused regarding the density values obtained from the function kde2d() from the package MASS because the are not in the intervall [0,1] as I would expect them to be. Here is an example: x <- c(0.0036,0.0088,0.0042,0.0022,-0.0013,0.0007,0.0028,-0.0028,0.0019,0.0026,-0

Re: [R] Question on density values obtained from kde2d() from package MASS

2011-11-24 Thread Prof Brian Ripley
On Thu, 24 Nov 2011, Andreas Klein wrote: Hello, I am a little bit confused regarding the density values obtained from the function kde2d() from the package MASS because the are not in the intervall [0,1] as I would expect them to be. Here is an Your expectation is wrong. example: x <-