[R] density > 1?

2009-03-02 Thread Johannes Elias
Dear R-Gurus, I wonder why 'density' values as shown in hist or plot(density(x)) are sometimes over 1. How can that be? Example >hist(rnorm(1000,sd=.5),freq=FALSE) The resulting plot shows density values below 1 on the y-axis. However, >hist(rnorm(1000,sd=.1),freq=FALSE) shows density values

[R] clogit and small sample sizes: what to do?

2008-11-07 Thread Johannes Elias
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Conditional logistic regression and small sample sizes: what to do? Dear R-Gurus, [I run R 2.8.0 on WinXP. I have no formal training in statistics.] Please feel free to skip the 'Blah blah part' for questions below. - ---Blah blah part Why