[R] Weird densityplot behaviour
Deepayan Sarkar
deepayansarkar at yahoo.com
Sun Aug 11 03:49:01 CEST 2002
--- 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
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._
More information about the R-help
mailing list