Hi Przemek, Take a look at ?sm.density.compare : you forgot to include the "group" argument in your call. Try
require(sm) rno1 = rnorm(1000) rno2 = rnorm(1000) g <- rep(c(1, 2), each = 1000) y <- c(rno1, rno2) sm.density.compare(y, g, model = 'equal') HTH, Jorge.- On Mon, Jan 2, 2012 at 7:00 AM, przemek <> wrote: > Dear all, > Let say I have a sets of numbers: > rno1 = rnorm(1000) > rno2 = rnorm(1000) > > If I write request as follow: > sm.density.compare (rno, rno3, xfit=min(rno), max(rno2)) > why I receive a lot of curves in my plot, while I have only two data sets? > > > regards > Przemek > > > -- > View this message in context: > http://r.789695.n4.nabble.com/sm-density-compare-a-lot-of-curves-tp4253039p4253039.html > Sent from the R help mailing list archive at Nabble.com. > > ______________________________________________ > R-help@r-project.org mailing list > https://stat.ethz.ch/mailman/listinfo/r-help > PLEASE do read the posting guide > http://www.R-project.org/posting-guide.html > and provide commented, minimal, self-contained, reproducible code. > [[alternative HTML version deleted]] ______________________________________________ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.