Skip to content
Prev 172470 / 398502 Next

sm.density.compare

Hi James,
This is precisely the problem.

## Show the error [message]
y <- rnorm(100)
y[c(3,6,9,12,20,56)] <- NA
g <- rep(1:2, rep(50,2))
sm.density.compare(y, g, model="equal")

## One way around the problem is row-wise deletion of NAs
na.omit(cbind.data.frame(y,g))
with(na.omit(cbind.data.frame(y,g)), sm.density.compare(y, g,
model="equal"))

Regards, Mark.
James Lenihan wrote: