Hi,
 
I'm generating a mixture of 2 univariate normal distributions using norMix and 
rnorMix and would like to put a constraint on Mean (Equal). here is my code 
snippet:

library(nor1mix)

X <- norMix(mu=c(50, 60 ), sig2=c(5,10), w=c(0.5, 0.5))

mixData <- rnorMix(1000, X)

plot(mixData, type="l")


I do get the 1000 random numbers in equal proportion but I want to confirm if 
the Mean is same or not

Any help will be highly appreciated

Victor



      
        [[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.

Reply via email to