Skip to content

Difference in mixture normals and one density

2 messages · Jim Silverton, Liaw, Andy

#
Is something like this what you're looking for?

R> library(nor1mix)
R> nmix2 <- norMix(c(2, 3), sig2=c(25, 4), w=c(.2, .8))
R> dnorMix(1, nmix2) - dnorm(1, 2, 5)
[1] 0.03422146

Andy
Notice:  This e-mail message, together with any attachme...{{dropped:11}}