Message-ID: <20020811014901.46775.qmail@web13905.mail.yahoo.com>
Date: 2002-08-11T01:49:01Z
From: Deepayan Sarkar
Subject: Weird densityplot behaviour
In-Reply-To: <20020810162439.POUQ22294.tomts8-srv.bellnexxia.net@there>
--- Geoff Wright <geoffwright at sympatico.ca> wrote:
> When I do:
> rx<-rnorm(500)
> densityplot(rx)
>
> I get something that looks reasonable.
>
> However, when I do:
> rx<-rnorm(5)
> densityplot(rx)
>
> I get strange results sometimes...
> For example, if rx = c(1,1,1,1,2), then the resulting plot shows marginal
> densities greater than 1.
And why exactly is that strange ? For instance, try calculating the
normal(0, .3^2) density at 0 [ dnorm(0, mean = 0, sd = .3) ].
> I must be overlooking something.
>
> Thanks.
> geoff
>
>
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
> 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
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._